Bug 379660 - Collapse template arguments in flamegraph
Summary: Collapse template arguments in flamegraph
Status: REPORTED
Alias: None
Product: Heaptrack
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Milian Wolff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-09 13:59 UTC by Thomas McGuire
Modified: 2017-05-09 13:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas McGuire 2017-05-09 13:59:11 UTC
When running heaptrack on something that uses a lot of templates, like std::string, the flamegraph becomes unreadable because all the template arguments are obscuring the function name. Some suggestions:

- Elide the function name in the middle instead of cutting it off a the end
- Collapse long tempate arguments: Instead of "std::map<std::basic_string<bla bla bla>, blub blub blub>::operator[](std::string &const)", say just "std::map<...>::operator[](std::string &const)"