How to get references for all instance of classes

I want to develop a plugin to get all method usage of class but I don't know how to get reference of all instances for class to do search for each of them

can anyone help me   

Please sign in to leave a comment.