crosperf: Add verification of per-process profiles

Verification is very helpful when we record per-process perf profile
and collect top statistics.
Using verification we can make sure that perf profiles are collected
from the hottest functions in top statistics.

BUG=chromium:1098098
TEST=unittests and crosperf with per-process profiling are passing.

Change-Id: Ib79b070babcdea38932ba709ac3e14fa3311f842
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2407223
Reviewed-by: Tiancong Wang <tcwang@google.com>
Reviewed-by: Caroline Tice <cmtice@chromium.org>
Commit-Queue: Denis Nikitin <denik@chromium.org>
Tested-by: Denis Nikitin <denik@chromium.org>
2 files changed