Draw a plot showing the difference in debug loc coverage on two
files provided.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
An example of the plot on a GDB binary built with LLVM Trunk using the entry values vs. no entry values.
How ubiquitous is matplotlib? I wonder if it might be better to textually print out a gnuplot file or something similar. OTOH the surface area in the code seems to be really small, so this may be fine.
@aprantl For this option I would keep using the matplotlib (there is a help message saying we need the library, please see e.g. clang/utils/analyzer/CmpRuns.py).
Although, I think the gnuplot could be useful as well, but I don't see any obstacle that both ways of plotting coexist here, so we can add another feature to the llvm-locstats tool generating a gnuplot text file. WDYT?
Gnuplot also has a weird license and I don't necessarily want to introduce it as a dependency either. But some form of dumping the raw data that is being graphed into some sort of machine-readable output (perhaps CSV?) could be useful for importing it into other tools like spreadsheets, pgfplot, gnuplot and so on.
That sounds like a very good idea! Having something like that will be useful, and we should make a proposal for that. Thanks for the review!
spaces around equals for the width parameter.