I have a Web Application deployed to a local Glassfish server which I would like to profile in order to see which parts of my code is accessed most frequently. The code consists of JSF beans and Remote EJBs, with both being deployed in a single EAR. I tried using VisualVM to profile my Application but, although I can successfully connect to the Glassfish server as well as my context root, VisualVM doesn't seem to profile my own classes (in the com.test.* namespace). I see lots of Sun classes and other dependencies such as Lucene being accessed, but not a single instance of my own classes.
My question is thus: am I doing something wrong or is this a shortcoming of VisualVM and should I therefor try a different profiling tool?