1 llvm-locstats - calculate statistics on DWARF debug location
2 ============================================================
4 .. program:: llvm-locstats
9 :program:`llvm-locstats` [*options*] [*filename*]
14 :program:`llvm-locstats` works like a wrapper around :program:`llvm-dwarfdump`.
15 It parses :program:`llvm-dwarfdump` statistics regarding debug location by
16 pretty printing it in a more human readable way.
18 The line 0% shows the number and the percentage of DIEs with no location
19 information, but the line 100% shows the information for DIEs where there is
20 location information in all code section bytes (where the variable or parameter
21 is in the scope). The line [50%,60%) shows the number and the percentage of DIEs
22 where the location information is between 50 and 60 percentage of its scope
28 .. option:: --only-variables
30 calculate the location statistics only for local variables
32 .. option:: --only-formal-parameters
34 calculate the location statistics only for formal parameters
36 .. option:: --ignore-debug-entry-values
38 ignore the location statistics on locations containing the
39 debug entry values DWARF operation
41 .. option:: --draw-plot
43 make histogram of location buckets generated (requires
48 compare the debug location coverage on two files provided, and draw
49 a plot showing the difference (requires matplotlib)
54 :program:`llvm-locstats` returns 0 if the input file were parsed
55 successfully. Otherwise, it returns 1.
60 Pretty print the location coverage on the standard output.
66 =================================================
67 Debug Location Statistics
68 =================================================
69 cov% samples percentage(~)
70 -------------------------------------------------
83 =================================================
84 -the number of debug variables processed: 6
85 -PC ranges covered: 81%
86 -------------------------------------------------
87 -total availability: 83%
88 =================================================
93 Generate a plot as an image file.
97 llvm-locstats --draw-plot file1.out
99 .. image:: locstats-draw-plot.png
105 Generate a plot as an image file showing the difference in the debug location
110 llvm-locstats --compare file1.out file1.withentryvals.out
112 .. image:: locstats-compare.png
118 :manpage:`llvm-dwarfdump(1)`