I am trying to profile a method using the JetBrains Profiler API (JetBrains.Profiler.Api 1.1.8). The workflow is:
- launch application
- get application to a point where I want to profile
- launch dotTrace and start it with the following settings
- the profiling task bar shows that the session is running
I have tried both of the following code snippets
MeasureProfiler.StartCollectingData();
SomeLongRunningMethod();
MeasureProfiler.SaveData();
.
..
...
MeasureProfiler.StartCollectingData();
SomeLongRunningMethod();
MeasureProfiler.StopCollectingData();
MeasureProfiler.SaveData();
the method executes but I can't see the snapshot anywhere on disk or in dotTrace snapshots. What am I missing?