How do I use BeginCpuProfile correctly? #648
-
|
Do I call BeginCpuProfile once at the start and EndCpuProfile at the end of the whole profiling session, or should I call them once per some interval, or? And when would one not want to set the EnableSampleCollection flag? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @AnsisMalins,
Yes.
As we understand it, that flag enables automatic, periodic sampling, configured via Good luck! |
Beta Was this translation helpful? Give feedback.
Hi @AnsisMalins,
Yes.
As we understand it, that flag enables automatic, periodic sampling, configured via
CpuProfileSampleInterval. The alternative is to omit that flag and manually callCollectCpuProfileSample.Good luck!