Skip to content
Discussion options

You must be logged in to vote

Hi @AnsisMalins,

Do I call BeginCpuProfile once at the start and EndCpuProfile at the end of the whole profiling session

Yes.

And when would one not want to set the EnableSampleCollection flag?

As we understand it, that flag enables automatic, periodic sampling, configured via CpuProfileSampleInterval. The alternative is to omit that flag and manually call CollectCpuProfileSample.

Good luck!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AnsisMalins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants