I am using VisualVM
to see where my application is slow. But it does not show all methods, probably does not show all methods that delays the application.
I have a realtime application (sound processing) and have a time deficiency in few hundreds of microseconds.
Is it possible that VisualVM
hides methods which are fast themselves?
UPDATE 1
I found slow method by sampler and guessing. It was toString()
method which was called from debug logging which was turned off, but consuming a time.
Settings
helped and now I know how to see it: it was depending on Start profiling from
option.
if (log.isDebugEnabled()) {
or similar to avoid String concatenation and other things taking place in your log calls. – Jesus