Controlling profiling via an API
OliverB
Posts: 4 New member
To help me focus on important code, I would like to turn profiling on and off with an API (from C#). Is this available? Google finds documentation for ANTS v3 (http://help.red-gate.com/help/antsprofiler3/0/en/topics/AP_UsingTheAPI.html). I guess the other alternative is to put some Sleeps in my code, before and after the important area, so I can use the time selector.
Tagged:
Answers
The documentation you've found there is quite old (from ANTS Profiler 3!).
The documentation you want for the most recent version is here: https://documentation.red-gate.com/amp10/working-with-profiling-results/using-the-snapshot-api
I hope that helps!
Kind regards,
Alex
Have you visited our Help Center?
Thank you for your response. The document you have referred me to is for the memory profiler, whereas I am using the performance profiler. Is there an API for that?
Regards,
Oliver