Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Take snapshots after every 5 seconds

Moderators: Vladimir Kondratyev, Anton Katilin

Take snapshots after every 5 seconds

Postby sandeep » Sun Jul 01, 2012 6:08 pm

I need to get snapshots at regular intervals. Is there any way to clear the snapshot after I retrieve it using Controller.CaptureSnapshot Method in the API? Or do I have to call Controller.StopCPUProfiling Method and then start the CPU profiling again after every few seconds? Would that have any performance impact?
sandeep
 
Posts: 24
Joined: Wed May 16, 2012 3:08 pm

Re: Take snapshots after every 5 seconds

Postby Anton Katilin » Mon Jul 02, 2012 11:28 am

I need to get snapshots at regular intervals. Is there any way to clear the snapshot after I retrieve it using Controller.CaptureSnapshot Method in the API? Or do I have to call Controller.StopCPUProfiling Method and then start the CPU profiling again after every few seconds?

Yes, you can use the API to stop profiling and then start it again.

Also, consider a dedicated feature:
http://www.yourkit.com/docs/net70/help/periodic.jsp

Would that have any performance impact?

http://www.yourkit.com/docs/net70/help/overhead.jsp
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am


Return to .NET Profiler

Who is online

Users browsing this forum: No registered users and 4 guests