[all-commits] [llvm/llvm-project] 1bf89e: [MemProf] Change histogram storage from uint64_t t...

Snehasish Kumar via All-commits all-commits at lists.llvm.org
Wed Jul 30 11:52:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1bf89e90a878e7e5844866d75b6c25933395435d
      https://github.com/llvm/llvm-project/commit/1bf89e90a878e7e5844866d75b6c25933395435d
  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
    A compiler-rt/test/memprof/TestCases/memprof_histogram_uint8.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:
  -----------
  [MemProf] Change histogram storage from uint64_t to uint16_t (#147854)

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