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

Added Callgrind format file export feature #46

Merged
merged 1 commit into from
Jun 30, 2017

Conversation

schellingb
Copy link
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
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.

None yet

2 participants