Reputation: 13809
I want to know the number of extra objects created by processing a single request in my application.
I remember that OptimizeIt used to be able to do it. The steps, as I remember it were:
OptimizeIt does not seem to be actively developed anymore (please correct me if I am wrong), and it does not seem to support Mac OS X.
Are there any other Java profilers for Mac OS X which support the scenario I outlined above?
Upvotes: 1
Views: 265
Reputation: 6991
Take a look at Memory sampler from VisualVM and use it in 'Deltas' mode.
Upvotes: 0
Reputation: 48105
JProfiler can do that. You
Then the initial object set of the heap walker will only contain the strongly referenced objects that have been created by your use case.
Disclaimer: My company develops JProfiler
Upvotes: 1