How do I use BeginCpuProfile correctly? #648
Answered
by
ClearScriptLib
AnsisMalins
asked this question in
Q&A
|
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? |
Answered by
ClearScriptLib
Mar 17, 2025
Replies: 1 comment
|
Hi @AnsisMalins,
Yes.
As we understand it, that flag enables automatic, periodic sampling, configured via Good luck! |
0 replies
Answer selected by
AnsisMalins
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!