Automatic Memory Profiling

hanenhanen Posts: 3
edited January 23, 2014 2:25PM in ANTS Memory Profiler 8
Is it possible to start and stop a performance profiling snapshot programmatically from within the application being profiled.

Comments

  • Jessica RJessica R Posts: 1,210 Rose Gold 4
    No, I'm sorry to say

    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?


  • Jessica,

    Thank you for your response!

    You're referring to memory profiling in your answer...what about performance profiling?
  • Jessica RJessica R Posts: 1,210 Rose Gold 4
    Hi hanen,

    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?


Sign In or Register to comment.