[Sampling profiler] Fix incorrect reuse of frames across samples
Frames from deduplicated samples were being left in the current sample
state on the class, resulting in incorrect extra frames being added when
the next sample was recorded. This change eliminates the current sample
state to avoid this problem, and adds a test for this case.
Bug: 905379
Change-Id: I5fe0ccd3e50675669d4c7124fb7f64ebb85fe807
Reviewed-on: https://chromium-review.googlesource.com/c/1336247
Reviewed-by: Xi Cheng <chengx@chromium.org>
Commit-Queue: Mike Wittman <wittman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#608160}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 311a3e55aa4ddc50db1049b6af0776b94d77517a
3 files changed