[all-commits] [llvm/llvm-project] 11314f: [memprof] Filter out callstack frames which cannot...

Snehasish Kumar via All-commits all-commits at lists.llvm.org
Fri Mar 4 11:11:08 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11314f405903482c5a09e29922db80305e7c20d4
      https://github.com/llvm/llvm-project/commit/11314f405903482c5a09e29922db80305e7c20d4
  Author: Snehasish Kumar <snehasishk at google.com>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
    M llvm/include/llvm/ProfileData/RawMemProfReader.h
    M llvm/lib/ProfileData/RawMemProfReader.cpp
    M llvm/test/tools/llvm-profdata/memprof-basic.test
    M llvm/test/tools/llvm-profdata/memprof-multi.test
    M llvm/unittests/ProfileData/MemProfTest.cpp

  Log Message:
  -----------
  [memprof] Filter out callstack frames which cannot be symbolized.

This patch filters out callstack frames which can't be symbolized or if
the frames belong to the runtime. Symbolization may not be possible if
debug information is unavailable or if the addresses are from a shared
library. For now we only support optimization of the main binary which
is statically linked to the compiler runtime.

Differential Revision: https://reviews.llvm.org/D120860




More information about the All-commits mailing list