OSDN Git Service

Simpleperf: do stack unwinding while recording.
authorYabin Cui <yabinc@google.com>
Wed, 7 Oct 2015 22:00:46 +0000 (15:00 -0700)
committerYabin Cui <yabinc@google.com>
Tue, 13 Oct 2015 03:10:45 +0000 (20:10 -0700)
commitf469c3d7f4466a2a31c3e837969c43c1e3bc4c90
tree26156da1cccc15a66e949fad0db87cb335c6d885
parentb1f20fa48b65b2f03f9303ffa2aa381cd1d3dd6f
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
simpleperf/cmd_record.cpp
simpleperf/cmd_record_test.cpp
simpleperf/event_fd.cpp
simpleperf/event_fd.h
simpleperf/event_selection_set.cpp
simpleperf/record.cpp
simpleperf/record.h
simpleperf/record_test.cpp