[all-commits] [llvm/llvm-project] 08e40c: Reapply "[MemProf] Change histogram storage from u...

Snehasish Kumar via All-commits all-commits at lists.llvm.org
Wed Jul 30 18:29:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08e40c12fa0c83652968f2f24c3ec76a062f4042
      https://github.com/llvm/llvm-project/commit/08e40c12fa0c83652968f2f24c3ec76a062f4042
  Author: Snehasish Kumar <snehasishk at google.com>
  Date:   2025-07-30 (Wed, 30 Jul 2025)

  Changed paths:
    M compiler-rt/include/profile/MemProfData.inc
    M compiler-rt/lib/memprof/memprof_rawprofile.cpp
    M compiler-rt/lib/memprof/tests/CMakeLists.txt
    A compiler-rt/lib/memprof/tests/histogram_encoding.cpp
    M llvm/include/llvm/ProfileData/MemProfData.inc
    M llvm/lib/ProfileData/MemProfReader.cpp
    M llvm/test/tools/llvm-profdata/Inputs/basic-histogram.memprofexe
    M llvm/test/tools/llvm-profdata/Inputs/basic-histogram.memprofraw
    M llvm/test/tools/llvm-profdata/Inputs/basic.memprofexe
    M llvm/test/tools/llvm-profdata/Inputs/basic.memprofraw
    A llvm/test/tools/llvm-profdata/Inputs/basic_v4.memprofexe
    A llvm/test/tools/llvm-profdata/Inputs/basic_v4.memprofraw
    M llvm/test/tools/llvm-profdata/Inputs/buildid.memprofexe
    M llvm/test/tools/llvm-profdata/Inputs/buildid.memprofraw
    M llvm/test/tools/llvm-profdata/Inputs/inline.memprofexe
    M llvm/test/tools/llvm-profdata/Inputs/inline.memprofraw
    M llvm/test/tools/llvm-profdata/Inputs/multi.memprofexe
    M llvm/test/tools/llvm-profdata/Inputs/multi.memprofraw
    M llvm/test/tools/llvm-profdata/Inputs/padding-histogram.memprofexe
    M llvm/test/tools/llvm-profdata/Inputs/padding-histogram.memprofraw
    M llvm/test/tools/llvm-profdata/Inputs/pic.memprofexe
    M llvm/test/tools/llvm-profdata/Inputs/pic.memprofraw
    M llvm/test/tools/llvm-profdata/memprof-basic-histogram.test
    M llvm/test/tools/llvm-profdata/memprof-basic.test
    A llvm/test/tools/llvm-profdata/memprof-basic_v4.test
    M llvm/test/tools/llvm-profdata/memprof-inline.test
    M llvm/test/tools/llvm-profdata/memprof-multi.test
    M llvm/test/tools/llvm-profdata/memprof-padding-histogram.test
    M llvm/test/tools/llvm-profdata/memprof-pic.test

  Log Message:
  -----------
  Reapply "[MemProf] Change histogram storage from uint64_t to uint16_t… (#151431)

Reapply #147854 after fixes merged in #151398.

Change memory access histogram storage from uint64_t to uint16_t to
reduce profile size on disk. This change updates the raw profile format
to v5. Also add a histogram test in compiler-rt since we didn't have one
before. With this change the histogram memprof raw for the basic test
reduces from 75KB -> 20KB.



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