[llvm-profgen] Ignore stack samples before aggregation
authorwlei <wlei@fb.com>
Mon, 11 Oct 2021 20:40:22 +0000 (13:40 -0700)
committerwlei <wlei@fb.com>
Wed, 13 Oct 2021 23:52:29 +0000 (16:52 -0700)
commitab5d65e6858b25fc07672a0bd2d07f666bde6b51
treee9270dab99a71cc8072a7c17ac560fa6afb449cb
parent4fcc0ac15e056777012a7c62d35f825227a0b7e7
[llvm-profgen] Ignore stack samples before aggregation

With `ignore-stack-samples`, We can ignore the call stack before the samples aggregation which could reduce some redundant computations.

Reviewed By: hoy, wenlei

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