History log of /system/extras/simpleperf/event_type.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ffaa912ca48e87d25d516780c15cdd7c50de43db 16-Jan-2016 Yabin Cui <yabinc@google.com> Simpleperf: support build for windows.

Change-Id: I31554f36ee97eb0ae27bda9b77e29410776925e2
/system/extras/simpleperf/event_type.cpp
66dd09e8e2407082ce93bf0784de641298131912 04-Dec-2015 Elliott Hughes <enh@google.com> Track rename from base/ to android-base/.

Change-Id: Ic15d4778c7accd1382de0b440a437aba2cf67016
/system/extras/simpleperf/event_type.cpp
42aa127e8ab4c5eb5197cf3cc68470cf3a0fdcbb 18-Sep-2015 Yabin Cui <yabinc@google.com> Simpleperf: rewrite unsupported logging style.

Previously we can use a ternary operator to choose the log level, like
(error ? LOG(ERROR) : LOG(DEBUG)) << xxx. But as the LOG() macro is about
to change, we can no longer write like this.

This CL also changes some improper log levels and log messages.

Change-Id: Ib9a55f2ca241516a6e89afad4a733cc07b19570f
/system/extras/simpleperf/event_type.cpp
04d08a35c5e1cabdf6eb7397536a790b0ff44459 20-Aug-2015 Yabin Cui <yabinc@google.com> Simpleperf: improve output of stat command.

Before this change:
$sudo simpleperf record -a sleep 1
Performance counter statistics:

5994649915(scaled) cpu-cycles
8785461570(scaled) stalled-cycles-frontend
6089237592(scaled) instructions
1086987265(scaled) branch-instructions
11019426(scaled) branch-misses
40306210522 task-clock
21955 context-switches
16659 page-faults

Total test time: 1.007973 seconds.

After this change:
$sudo simpleperf record -a sleep 1
Performance counter statistics:

11,768,763,985 cpu-cycles # 11.675808 Ghz (83%)
16,142,943,081 stalled-cycles-frontend # 16.015 G/sec (67%)
17,286,201,730 instructions # 0.680818 cycles per instruction (83%)
3,141,529,369 branch-instructions # 3.117 G/sec (84%)
18,168,963 branch-misses # 0.578348% miss rate (83%)
40222.432118(ms) task-clock # 3990.473223% cpu usage (100%)
19,240 context-switches # 19.088 K/sec (100%)
9,302 page-faults # 9.229 K/sec (100%)

Total test time: 1.007961 seconds.

Change-Id: I5590699957650e246b14b3d2b405108483631908
/system/extras/simpleperf/event_type.cpp
5872ac6f1f5b804ffea38ff59025441618802d6b 01-Aug-2015 Yabin Cui <yabinc@google.com> Simpleperf: correct the event type name printed in stat command.

Bug: 22884977
Change-Id: I3c4f5c8dc02d5b17f5942e4e98476d1c4f3fbcad
/system/extras/simpleperf/event_type.cpp
9fd3cc1048a3d0338df4a48760dfd655560992a1 26-Jun-2015 Yabin Cui <yabinc@google.com> Simpleperf: support build on mac.

Bug: 19483574
Change-Id: I6c28541944bc0a4e6fc07d7ea5a8fb5f71890510
/system/extras/simpleperf/event_type.cpp
d115b2f738f2cef352877b26c2d93460ac9fea25 15-Jun-2015 Yabin Cui <yabinc@google.com> Simpleperf: support event type modifier.

Also fix a bug in event_attr dumping.

Bug: 19483574
Change-Id: I255647d1471acab3a63c3dc787ab06b3d2bee294
/system/extras/simpleperf/event_type.cpp
b032de7a9e1975a838cd6df2e7c8df3c7f70a3ce 18-Jun-2015 Yabin Cui <yabinc@google.com> Simpleperf: support monitoring existing processes/threads.

Also change the default record freq from 1000 to 4000. Because 1000 seems to be too low.

Bug: 19483574
Change-Id: I340fcb9d28a156862705e483ee340a1c824eea21
/system/extras/simpleperf/event_type.cpp
7d4904d5fc038f8125cfc63a5eaa4669ee2aebda 09-Jun-2015 Yabin Cui <yabinc@google.com> Simpleperf: fix a few bugs.

Fix mistyped word.
Kill workload process when exiting.
Add checking of whether branch sampling is supported.

Bug: 19483574

Change-Id: Ibe48914cd92da1ee40bf67c0c47a6376a7291e8c
/system/extras/simpleperf/event_type.cpp
f569b478e74560a2d9e29a96824e16b93a55b97f 30-Apr-2015 Yabin Cui <yabinc@google.com> Support tracepoint event types in simpleperf.

Also support options in `simpleperf list`, add test about tracepoint event types.

Bug: 19483574

Change-Id: I2d2c2f300fe5e2968696228899084410aa9f29a4
/system/extras/simpleperf/event_type.cpp
8f6225147c5b6cb2159a7f5cb0dab952ee0759df 06-May-2015 Yabin Cui <yabinc@google.com> Dump build_id feature in `simpleperf record`.

Bug: 19483574
Change-Id: Ie2acd8a157bca9ad3c01a2e4b37e139aba89670f
/system/extras/simpleperf/event_type.cpp
9759e1b1ce76185aa539aeea2fb1cbd8382156e7 29-Apr-2015 Yabin Cui <yabinc@google.com> Implement simpleperf record/dumprecord subcommands.

Bug: 19483574

Change-Id: Id879713a75c2d3a6289d8847b95ee0bb4a2cc8a0
/system/extras/simpleperf/event_type.cpp
67d3abd7b26a741347b33402ad32f5c6735ca0bd 17-Apr-2015 Yabin Cui <yabinc@google.com> Implement simpleperf list subcommand.

simpleperf is used to replace linux/tools/perf. And This CL implements
the list subcommand of it.

Change-Id: I3e6fe854e19cc370070d0fd8416d0aa6fa8f8e90
/system/extras/simpleperf/event_type.cpp