-
Notifications
You must be signed in to change notification settings - Fork 78
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 -memprofile option to l-tm #55
Conversation
For profiling memory allocations used for producing reproducible instructions for analysing allocations. Usage: This command collects a profile: ``` l-tm -memprofile=mem.pprof <input llvm> ``` This one loads pprof in a mode showing all allocations that occurred by count (rather than by size, which is alloc_space). ``` go tool pprof -sample_index=alloc_objects mem.pprof ``` Useful commands thereafter: `top10` or `web`.
4d63f0c
to
3022db4
Compare
For the record, here's what the output looks like at the moment on master:
|
BTW, my assertion (offline) that it was 50% of allocations was erroneous, it looks like it is only 24% of allocations above - I must have been considering the cumulative number rather than the "individual method" number. I still believe the ~10% wallclock speedup number, though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
For profiling memory allocations used for producing reproducible
instructions for analysing allocations.
Usage:
This command collects a profile:
This one loads pprof in a mode showing all allocations that occurred by
count (rather than by size, which is alloc_space).
Useful commands thereafter:
top10
orweb
.