0

How do you get the Visual Studio 2015 profiler to run when a breakpoint is hit? I only need to profile one small section of code. The link below suggests that this can be done with the "when hit" breakpoints but does not give any details as to what the condition should be.

Visual Studio Profiler Suggestion

Fractal
  • 1,748
  • 5
  • 26
  • 46

1 Answers1

1

The link you provided is a suggestion for the new feature. Currently it is not possible to start/ stop profiler based on breakpoint hit. You can however manually enable/ disable CPU Sampling in CPU Usage tab at any time while debugging.

Andrey Kriachko
  • 689
  • 4
  • 13
  • okay, was hopeful that it was more than just a suggestion. I might try messing around with the CPU sampling a bit. Thanks for the reply. – Fractal Apr 22 '16 at 14:03