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.
Comments
3 comments
-
Hi @OliverB,
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 -
Hi Alex,
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 -
There's a command line which is perhaps confusingly referred to as an API: https://documentation.red-gate.com/app10/setting-up-and-running-a-profiling-session/profiling-from-the-command-line-api.
Add comment
Please sign in to leave a comment.