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

use function input parameter as period for perf #328

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhongsheng94
Copy link

When using perf probe to analyze memory leaks, the output results may include the memory application size.

perf probe output example

a.out 423699/423721 [000] 515038.551407: probe_libc:malloc: (560024aaf2d9) bytes=0xf0

This PR attempts to use this size information. The width of the flame graph in this way represents the requested memory size rather than the number of times.

Inspired by https://github.com/brendangregg/BPF-tools/blob/master/old/2017-12-23/mallocstacks.py

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.

1 participant