File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,26 @@ static std::string GetExecutablePath(const char *Argv0) {
5959
6060int 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 " ;
You can’t perform that action at this time.
0 commit comments