Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sampling option to ignore time spent in native code #3

Merged
merged 1 commit into from
May 19, 2021

Conversation

kolesnikovae
Copy link
Member

Due to how .NET runtime works, Microsoft-DotNETCore-SampleProfiler samples may be either of Managed or External type:

  • If at the time of suspension the thread was running in managed code, then is should be considered as CPU time sample.
  • If at the time of suspension the thread running in native code, then it is impossible to determine whether it was running on CPU or not.

The change introduces profiler.WithManagedCodeOnly option to ignore time spent in native code.

@kolesnikovae kolesnikovae merged commit 27769c5 into master May 19, 2021
@kolesnikovae kolesnikovae deleted the managed-code-filtering branch May 13, 2022 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant