llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[memprof] Compute CallStackId when deserializing IndexedAllocationInfo

Open kazutakahirata opened this issue 1 year ago • 2 comments

There are two ways to create in-memory instances of IndexedAllocationInfo -- deserialization of the raw MemProf data and that of the indexed MemProf data.

With:

commit 74799f424063a2d751e0f9ea698db1f4efd0d8b2 Author: Kazu Hirata [email protected] Date: Sat Mar 23 19:50:15 2024 -0700

we compute CallStackId for each call stack in IndexedAllocationInfo while deserializing the raw MemProf data.

This patch does the same while deserilizing the indexed MemProf data.

As with the patch above, this patch does not add any use of CallStackId yet.

kazutakahirata avatar Mar 24 '24 05:03 kazutakahirata

:white_check_mark: With the latest revision this PR passed the C/C++ code formatter.

github-actions[bot] avatar Mar 24 '24 05:03 github-actions[bot]

:white_check_mark: With the latest revision this PR passed the Python code formatter.

github-actions[bot] avatar Mar 24 '24 05:03 github-actions[bot]