[memprof] Update the isRuntime symbolization check.
authorSnehasish Kumar <snehasishk@google.com>
Tue, 7 Mar 2023 19:34:57 +0000 (19:34 +0000)
committerSnehasish Kumar <snehasishk@google.com>
Tue, 7 Mar 2023 20:16:15 +0000 (20:16 +0000)
commitbcebadeba75f4c05e9879607a89ac30d892fdcad
treeac256624fd740602f15fda1e87cc8c0a514ebe27
parenta90a7b044f7d4808b32189e4f9cf91ae49ca2218
[memprof] Update the isRuntime symbolization check.

Update the isRuntime check to only match against known memprof filenames
where interceptors are defined. This avoid issues where the path does
not include the directory based on how the runtime was compiled. Also
update the unittest.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D145521
llvm/lib/ProfileData/RawMemProfReader.cpp
llvm/unittests/ProfileData/MemProfTest.cpp