I can attach VisualVM to a running application, then start profiling.
All this time while I am performing manual operations, the target application is running and statistics is loosing.
How to begin collecting statistic exactly at the same moment application starts?
UPDATE
With Profile Startup
what is the way to set which class to run?
Very small cell for application setup says
-agentpath:D:/Apps/visualvm_138/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll=D:\Apps\visualvm_138\profiler\lib,5140
ie contains no clues to application location.
You can try the startup profiler plugin:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.