Skip to content

Commit 1d54ac1

Browse files
committed
usage message
Created using spr 1.3.4
1 parent 784de2c commit 1d54ac1

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

bolt/tools/heatmap/heatmap.cpp

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,26 @@ static std::string GetExecutablePath(const char *Argv0) {
5959

6060
int main(int argc, char **argv) {
6161
cl::HideUnrelatedOptions(ArrayRef(opts::HeatmapCategories));
62-
cl::ParseCommandLineOptions(argc, argv, "");
62+
cl::ParseCommandLineOptions(
63+
argc, argv,
64+
" BOLT Code Heatmap tool\n\n"
65+
" Produces code heatmaps using sampled profile\n\n"
66+
67+
" Inputs:\n"
68+
" - Binary (supports BOLT-optimized binaries),\n"
69+
" - Sampled profile collected from the binary:\n"
70+
" - perf data or pre-aggregated profile data (instrumentation profile "
71+
"not supported)\n"
72+
" - perf data can have basic (IP) or branch-stack (LBR) samples\n\n"
73+
74+
" Outputs:\n"
75+
" - Heatmaps: colored ASCII (requires a color-capable terminal or a"
76+
" conversion tool like `aha`)\n"
77+
" Multiple heatmaps are produced by default with different "
78+
"granularities (set by `block-size` option)\n"
79+
" - Section hotness: per-section samples% and utilization%\n"
80+
" - Cumulative distribution: working set size corresponding to a "
81+
"given percentile of samples\n");
6382

6483
if (opts::PerfData.empty()) {
6584
errs() << ToolName << ": expected -perfdata=<filename> option.\n";

0 commit comments

Comments
 (0)