[llvm-profgen] Deduplicate and improve warning for truncated context
authorWenlei He <aktoon@gmail.com>
Thu, 2 Sep 2021 00:31:07 +0000 (17:31 -0700)
committerWenlei He <aktoon@gmail.com>
Thu, 2 Sep 2021 16:15:38 +0000 (09:15 -0700)
commit6eca242e09d08202380e6bfe85e129c50f788d6b
tree8f99c1625ad72136899c8b1b139b4de609319956
parente1bb54b5930544b48c3a94069c037648a6adfc65
[llvm-profgen] Deduplicate and improve warning for truncated context

This change improves the warning for truncated context by: 1) deduplicate them as one call without probe can appear in many different context leading to duplicated warnings , 2) rephrase the message to make it easier to understand. The term "untracked frame" can be confusing.

Differential Revision: https://reviews.llvm.org/D109115
llvm/tools/llvm-profgen/PerfReader.cpp
llvm/tools/llvm-profgen/PerfReader.h