Skip to content

Added Callgrind format file export feature#46

Merged
CyberShadow merged 1 commit intoVerySleepy:masterfrom
schellingb:master
Jun 30, 2017
Merged

Added Callgrind format file export feature#46
CyberShadow merged 1 commit intoVerySleepy:masterfrom
schellingb:master

Conversation

@schellingb
Copy link
Copy Markdown
Contributor

This adds a new file export feature to the File menu below the CSV exporter. The Callgrind Format can be visualized graphically in QCachegrind (QT version of KCachegrind which runs on Windows).

Due to the nature of sample profiling the exported call counts aren't available, so this exporter just writes the number of callstacks containing a call instead. But with the timings and caller/callee relationships it still is quite useful and fun to look at :-)

I tried to do like the code around me does but wanted to contain this new feature in one block thus the inline struct with the static helper functions. Feel free to request style changes.

Example Visualization Example Visualization

Copy link
Copy Markdown
Member

@CyberShadow CyberShadow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks!

@CyberShadow CyberShadow merged commit 1db1d0f into VerySleepy:master Jun 30, 2017
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.

2 participants