[all-commits] [llvm/llvm-project] c5e4e8: [memprof] Add IndexedMemProfData::addCallStack (#1...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Fri Dec 6 12:10:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c5e4e8f87da8156108716b0e24e9ef40682562e8
      https://github.com/llvm/llvm-project/commit/c5e4e8f87da8156108716b0e24e9ef40682562e8
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-12-06 (Fri, 06 Dec 2024)

  Changed paths:
    M llvm/include/llvm/ProfileData/MemProf.h
    M llvm/lib/ProfileData/MemProfReader.cpp
    M llvm/unittests/ProfileData/MemProfTest.cpp

  Log Message:
  -----------
  [memprof] Add IndexedMemProfData::addCallStack (#118920)

This patch adds a helper function to replace an idiom like:

  CallStackId CSId = hashCallStack(CallStack)
  MemProfData.CallStacks.try_emplace(CSId, CallStack);
  // Do something with CSId.



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