[memprof] Add a test to verify callstack order.
authorSnehasish Kumar <snehasishk@google.com>
Tue, 15 Mar 2022 23:50:19 +0000 (16:50 -0700)
committerSnehasish Kumar <snehasishk@google.com>
Wed, 16 Mar 2022 17:10:57 +0000 (10:10 -0700)
commit49c048add4c980936fc2918838288ae2d795587d
tree328d6903df510a5408a1a7d66b9f48a67f01238b
parent67f53708b273d1665917598ad70f1958045554ee
[memprof] Add a test to verify callstack order.

We add to ensure that we are observing the correct callstack order in memprof
during symbolization. There was some confusion whether the order of
DIFrame objects were reversed but in reality the leaf function is at
index 0 so no code changes are required.

Differential Revision: https://reviews.llvm.org/D121759
llvm/lib/ProfileData/RawMemProfReader.cpp
llvm/test/tools/llvm-profdata/Inputs/inline.memprofraw [new file with mode: 0644]
llvm/test/tools/llvm-profdata/Inputs/memprof-inline.exe [new file with mode: 0755]
llvm/test/tools/llvm-profdata/memprof-inline.test [new file with mode: 0644]