Take snapshots after every 5 seconds
-
- Posts: 24
- Joined: Wed May 16, 2012 3:08 pm
Take snapshots after every 5 seconds
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?
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Take snapshots after every 5 seconds
Yes, you can use the API to stop profiling and then start it again.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?
Also, consider a dedicated feature:
http://www.yourkit.com/docs/net70/help/periodic.jsp
http://www.yourkit.com/docs/net70/help/overhead.jspWould that have any performance impact?