llvm-locstats.rst 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. llvm-locstats - calculate statistics on DWARF debug location
  2. ============================================================
  3. .. program:: llvm-locstats
  4. SYNOPSIS
  5. --------
  6. :program:`llvm-locstats` [*options*] [*filename*]
  7. DESCRIPTION
  8. -----------
  9. :program:`llvm-locstats` works like a wrapper around :program:`llvm-dwarfdump`.
  10. It parses :program:`llvm-dwarfdump` statistics regarding debug location by
  11. pretty printing it in a more human readable way.
  12. The line 0% shows the number and the percentage of DIEs with no location
  13. information, but the line 100% shows the information for DIEs where there is
  14. location information in all code section bytes (where the variable or parameter
  15. is in the scope). The line 50-59% shows the number and the percentage of DIEs
  16. where the location information is between 50 and 59 percentage of its scope
  17. covered.
  18. OPTIONS
  19. -------
  20. .. option:: -only-variables
  21. Calculate the location statistics only for local variables.
  22. .. option:: -only-formal-parameters
  23. Calculate the location statistics only for formal parameters.
  24. .. option:: -ignore-debug-entry-values
  25. Ignore the location statistics on locations containing the
  26. debug entry values DWARF operation.
  27. EXIT STATUS
  28. -----------
  29. :program:`llvm-locstats` returns 0 if the input file were parsed
  30. successfully. Otherwise, it returns 1.
  31. OUTPUT EXAMPLE
  32. --------------
  33. .. code-block:: none
  34. =================================================
  35. Debug Location Statistics
  36. =================================================
  37. cov% samples percentage(~)
  38. -------------------------------------------------
  39. 0% 1 16%
  40. 1-9% 0 0%
  41. 10-19% 0 0%
  42. 20-29% 0 0%
  43. 30-39% 0 0%
  44. 40-49% 0 0%
  45. 50-59% 1 16%
  46. 60-69% 0 0%
  47. 70-79% 0 0%
  48. 80-89% 1 16%
  49. 90-99% 0 0%
  50. 100% 3 50%
  51. =================================================
  52. -the number of debug variables processed: 6
  53. -PC ranges covered: 81%
  54. -------------------------------------------------
  55. -total availability: 83%
  56. =================================================
  57. SEE ALSO
  58. --------
  59. :manpage:`llvm-dwarfdump(1)`