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

how to use pprof-rs in async-program #120

Open
wpcchengxuyuan opened this issue Apr 29, 2022 · 2 comments
Open

how to use pprof-rs in async-program #120

wpcchengxuyuan opened this issue Apr 29, 2022 · 2 comments

Comments

@wpcchengxuyuan
Copy link

is there any way to support async-program, ex. tokio

@ileixe
Copy link

ileixe commented Jan 31, 2023

Did you get an answer? I also need specific functions in async context.

Strange to say, some function (e.g. BytesMut::clone()) was appeared, so I wonder what's difference. (Same code with non-async context appeared correctly)

image

@ileixe
Copy link

ileixe commented Jan 31, 2023

I'm not sure my theory is correct or not, but from my understanding about the cpu sampling behavior, async function called via poll() may not be captured as it's just one very short function call 🤔

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

No branches or pull requests

2 participants