summaryrefslogtreecommitdiff
path: root/simpleperf/event_selection_set.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2015-10-07 15:00:46 -0700
committerYabin Cui <yabinc@google.com>2015-10-12 20:10:45 -0700
commitf469c3d7f4466a2a31c3e837969c43c1e3bc4c90 (patch)
tree26156da1cccc15a66e949fad0db87cb335c6d885 /simpleperf/event_selection_set.cpp
parentb1f20fa48b65b2f03f9303ffa2aa381cd1d3dd6f (diff)
downloadextras-f469c3d7f4466a2a31c3e837969c43c1e3bc4c90.tar.gz
Simpleperf: do stack unwinding while recording.
Dumping user's stack consumes lots of disk space, which makes long period recording impossible. This patch does stack unwinding before writing to perf.data, so it doesn't need to save user's stack. Previous behavior is still supported with --post-unwind option. A record cache is used for online record processing. Bug: 22229391 Change-Id: Idcc6ec46924fff3fcc8c165d62f8af875b173cd4
Diffstat (limited to 'simpleperf/event_selection_set.cpp')
-rw-r--r--simpleperf/event_selection_set.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/simpleperf/event_selection_set.cpp b/simpleperf/event_selection_set.cpp
index b7fcd581..e42b89a4 100644
--- a/simpleperf/event_selection_set.cpp
+++ b/simpleperf/event_selection_set.cpp
@@ -272,7 +272,6 @@ static bool ReadMmapEventDataForFd(std::unique_ptr<EventFd>& event_fd,
return false;
}
*have_data = true;
- event_fd->DiscardMmapData(size);
}
return true;
}