[all-commits] [llvm/llvm-project] 733dc3: [BOLT] Report per-section hotness in bolt-heatmap.
Rahman Lavaee via All-commits
all-commits at lists.llvm.org
Thu May 5 11:38:13 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 733dc3e50b2d34ebccaba24ca72ce72b5a3545f6
https://github.com/llvm/llvm-project/commit/733dc3e50b2d34ebccaba24ca72ce72b5a3545f6
Author: Rahman Lavaee <rahmanl at google.com>
Date: 2022-05-05 (Thu, 05 May 2022)
Changed paths:
M bolt/include/bolt/Profile/Heatmap.h
M bolt/lib/Profile/DataAggregator.cpp
M bolt/lib/Profile/Heatmap.cpp
Log Message:
-----------
[BOLT] Report per-section hotness in bolt-heatmap.
This patch adds a new feature to bolt heatmap to print the hotness of each section in terms of the percentage of samples within that section.
Sample output generated for the clang binary:
Section Name, Begin Address, End Address, Percentage Hotness
.text, 0x1a7b9b0, 0x20a2cc0, 1.4709
.init, 0x20a2cc0, 0x20a2ce1, 0.0001
.fini, 0x20a2ce4, 0x20a2cf2, 0.0000
.text.unlikely, 0x20a2d00, 0x431990c, 0.3061
.text.hot, 0x4319910, 0x4bc6927, 97.2197
.text.startup, 0x4bc6930, 0x4c10c89, 0.0058
.plt, 0x4c10c90, 0x4c12010, 0.9974
Reviewed By: rafauler
Differential Revision: https://reviews.llvm.org/D124412
More information about the All-commits
mailing list