aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorroyitaqi <royitaqi@users.noreply.github.com>2025-04-21 11:36:26 -0700
committerGitHub <noreply@github.com>2025-04-21 11:36:26 -0700
commitc873ca25976d81f54421d9f4e24c5f700824d0d1 (patch)
tree6e199592ea68712b638d222c62e46377b11fc8aa /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent9968ba8652b8a2936858a1a307207a9c8690ee5c (diff)
downloadllvm-c873ca25976d81f54421d9f4e24c5f700824d0d1.zip
llvm-c873ca25976d81f54421d9f4e24c5f700824d0d1.tar.gz
llvm-c873ca25976d81f54421d9f4e24c5f700824d0d1.tar.bz2
[lldb] Add symbol/table count into statistics (#136226)
# New stats The following stats are added and are available in both "statistics dump" command and in python API. 1. In summary: 1. Add `totalSymbolsLoaded`. The total number of symbols loaded in all modules. 2. Add `totalSymbolTablesLoaded `. The total number symbol tables loaded in all modules. 2. In each module's stats: 1. Add `symbolsLoaded`. The number of symbols loaded in the current module. # Example Example `statistics dump` output: ``` (lldb) statistics dump { ..., "modules": [ { "path": "/Users/<username>/demo/simple/a.out", "symbolsLoaded": 6, ... }, ... ], ... "totalSymbolTablesLoaded": 42, "totalSymbolsLoaded": 32198 } ``` # Tests **Manual test**: Built and ran lldb on a helloworld program. Ran `statistics dump`. Verified the above stats. **Unit test**: Ran the following tests: ``` $ bin/lldb-dotest -p TestStats.py ~/llvm-sand/external/llvm-project/lldb/test/API/commands/statistics/basic/ ... Ran 18 tests in 192.676s OK (skipped=3) ```
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions