This is an archive of the discontinued LLVM Phabricator instance.

[llvm-locstats] Add the --draw-plot option
ClosedPublic

Authored by djtodoro on Dec 25 2019, 12:28 AM.

Details

Summary

When using the option, draw the histogram representing the debug
location buckets. The resulting histogram will be saved as an image.

Diff Detail

Event Timeline

djtodoro created this revision.Dec 25 2019, 12:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 25 2019, 12:28 AM

An example of the plot on a GDB binary built with LLVM Trunk.

dstenb added a comment.Jan 7 2020, 9:04 AM

Looks good to me! I'll let the others have their say about the code or the output format.

vsk accepted this revision.Jan 7 2020, 9:17 AM

Thanks, LGTM as well.

This revision is now accepted and ready to land.Jan 7 2020, 9:17 AM

@vsk, @dstenb Thank you both for your comments!

This revision was automatically updated to reflect the committed changes.