mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-20 03:55:48 -04:00

Summary: This is a follow up for D70548. Currently, variables with debug info coverage between 0% and 1% are put into zero-bucket. D70548 changed the way statistics calculate a variable's coverage: we began to use enclosing scope rather than a possible variable life range. Thus more variables might be moved to zero-bucket despite they have some debug info coverage. The patch is to distinguish between a variable that has location info but it's significantly less than its enclosing scope and a variable that doesn't have it at all. Reviewers: djtodoro, aprantl, dblaikie, avl Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D71070
80 lines
2.5 KiB
ReStructuredText
80 lines
2.5 KiB
ReStructuredText
llvm-locstats - calculate statistics on DWARF debug location
|
|
============================================================
|
|
|
|
.. program:: llvm-locstats
|
|
|
|
SYNOPSIS
|
|
--------
|
|
|
|
:program:`llvm-locstats` [*options*] [*filename*]
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
|
|
:program:`llvm-locstats` works like a wrapper around :program:`llvm-dwarfdump`.
|
|
It parses :program:`llvm-dwarfdump` statistics regarding debug location by
|
|
pretty printing it in a more human readable way.
|
|
|
|
The line 0% shows the number and the percentage of DIEs with no location
|
|
information, but the line 100% shows the information for DIEs where there is
|
|
location information in all code section bytes (where the variable or parameter
|
|
is in the scope). The line [50%,60%) shows the number and the percentage of DIEs
|
|
where the location information is between 50 and 60 percentage of its scope
|
|
covered.
|
|
|
|
OPTIONS
|
|
-------
|
|
|
|
.. option:: -only-variables
|
|
|
|
Calculate the location statistics only for local variables.
|
|
|
|
.. option:: -only-formal-parameters
|
|
|
|
Calculate the location statistics only for formal parameters.
|
|
|
|
.. option:: -ignore-debug-entry-values
|
|
|
|
Ignore the location statistics on locations containing the
|
|
debug entry values DWARF operation.
|
|
|
|
EXIT STATUS
|
|
-----------
|
|
|
|
:program:`llvm-locstats` returns 0 if the input file were parsed
|
|
successfully. Otherwise, it returns 1.
|
|
|
|
OUTPUT EXAMPLE
|
|
--------------
|
|
|
|
.. code-block:: none
|
|
|
|
=================================================
|
|
Debug Location Statistics
|
|
=================================================
|
|
cov% samples percentage(~)
|
|
-------------------------------------------------
|
|
0% 1 16%
|
|
(0%,10%) 0 0%
|
|
[10%,20%) 0 0%
|
|
[20%,30%) 0 0%
|
|
[30%,40%) 0 0%
|
|
[40%,50%) 0 0%
|
|
[50%,60%) 1 16%
|
|
[60%,70%) 0 0%
|
|
[70%,80%) 0 0%
|
|
[80%,90%) 1 16%
|
|
[90%,100%) 0 0%
|
|
100% 3 50%
|
|
=================================================
|
|
-the number of debug variables processed: 6
|
|
-PC ranges covered: 81%
|
|
-------------------------------------------------
|
|
-total availability: 83%
|
|
=================================================
|
|
|
|
SEE ALSO
|
|
--------
|
|
|
|
:manpage:`llvm-dwarfdump(1)`
|