Automatic Memory Profiling
hanen
Posts: 3
Is it possible to start and stop a performance profiling snapshot programmatically from within the application being profiled.
Comments
You can use the snapshot API to trigger the profiler to take snapshots at certain parts in your code during a profiling session, but starting and stopping the session can only be done from the profiler UI.
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
Thank you for your response!
You're referring to memory profiling in your answer...what about performance profiling?
No worries!
Yes, this applies for the memory profiler.
The performance profiler is a bit different in that it doesn't take snapshots, but continuously collects data throughout the entire profiling session. The performance profiler does have a command line API so that you can programmatically start/stop a profiling session, though I'm not sure if it will meet the needs of what you're trying to do. I'm going to send you an email with more details to avoid any confusion from this being on the memory profiler forum.
You should hear from me soon!
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?