[all-commits] [llvm/llvm-project] 76b493: [memprof] Accept a function name in YAML (#119453)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Tue Dec 10 21:30:19 PST 2024


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

  Changed paths:
    M llvm/include/llvm/ProfileData/MemProf.h
    M llvm/test/tools/llvm-profdata/memprof-yaml.test
    M llvm/unittests/ProfileData/MemProfTest.cpp

  Log Message:
  -----------
  [memprof] Accept a function name in YAML (#119453)

This patch does two things:

- During deserialization, we accept a function name as an alternative
  to the usual GUID represented as a hexadecimal number.

- During serialization, we print a GUID as a 16-digit hexadecimal
  number prefixed with 0x in the usual way.  (Without this patch, we
  print a decimal number, which is not customary.)

In YAML, the MemProf profile is a vector of pairs of GUID and
MemProfRecord.  This patch accepts a function name for the GUID, but
it does not accept a function name for the GUID used in Frames yet.
That will be addressed in a subsequent patch.



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