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

Some native traces truncated #829

Closed
rshkv opened this issue Oct 19, 2023 · 2 comments
Closed

Some native traces truncated #829

rshkv opened this issue Oct 19, 2023 · 2 comments

Comments

@rshkv
Copy link

rshkv commented Oct 19, 2023

I'm looking at a flame graph with some traces looking truncated. I was hoping someone has tips to profile those missing frames.

Screenshot 2023-10-19 at 20 19 26

The profile is recorded using a runtime-attached async-profiler (AsyncProfiler.getInstance().execute(...)). I'm using event=itimer because this is running inside a container.

truncated.html.zip

@apangin
Copy link
Collaborator

apangin commented Oct 19, 2023

By default, async-profiler relies on frame pointer for unwinding native frames. However, this will not work if a native library is compiled with -fomit-frame-pointer optimization.

Please try --cstack dwarf option to enable DWARF-based stack unwinding. See #215 for details.

@rshkv
Copy link
Author

rshkv commented Oct 20, 2023

dwarf worked like a charm! Thank you very much.

Screenshot 2023-10-20 at 12 07 24

@rshkv rshkv closed this as completed Oct 20, 2023
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