[all-commits] [llvm/llvm-project] 0289ca: [BOLT] Print heatmap from perf2bolt (#139194)

Amir Ayupov via All-commits all-commits at lists.llvm.org
Tue May 13 13:23:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0289ca09bebe16c6e93dc13df6c293529fb1ee77
      https://github.com/llvm/llvm-project/commit/0289ca09bebe16c6e93dc13df6c293529fb1ee77
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2025-05-13 (Tue, 13 May 2025)

  Changed paths:
    M bolt/include/bolt/Utils/CommandLineOpts.h
    M bolt/lib/Core/BinaryFunction.cpp
    M bolt/lib/Profile/DataAggregator.cpp
    M bolt/lib/Profile/Heatmap.cpp
    M bolt/lib/Rewrite/RewriteInstance.cpp
    M bolt/lib/Utils/CommandLineOpts.cpp
    M bolt/test/X86/bolt-address-translation-yaml.test
    M bolt/test/X86/pre-aggregated-perf.test
    M bolt/test/perf2bolt/perf_test.test
    M bolt/tools/heatmap/heatmap.cpp

  Log Message:
  -----------
  [BOLT] Print heatmap from perf2bolt (#139194)

Add perf2bolt `--heatmap` option to produce heatmaps during profile
aggregation.

Distinguish exclusive mode (`llvm-bolt-heatmap`) and optional mode 
(`perf2bolt --heatmap`), which impacts perf.data handling:
exclusive mode covers all addresses, whereas optional mode consumes
attached profile only covering function addresses.

Test Plan: updated per2bolt tests:
- pre-aggregated-perf.test: pre-aggregated data,
- bolt-address-translation-yaml.test: pre-aggregated + BOLTed input,
- perf_test.test: no-LBR perf data.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list