OSDN Git Service

simpleperf: improve warning msg.
authorYabin Cui <yabinc@google.com>
Sat, 12 Aug 2017 00:03:07 +0000 (17:03 -0700)
committerYabin Cui <yabinc@google.com>
Sat, 12 Aug 2017 00:03:07 +0000 (17:03 -0700)
commite466d4d3144b9479cef713c131d572e3fe790867
treecbe47caaf21f177617a22e712dbd9738875e18da
parentc2adeafb3cc0c69643f56cd66781cb5b30cd4ab7
simpleperf: improve warning msg.

The warning of missing symbol for each lib is shown twice,
once in recording, and once in reporting. This is redundant and
maybe misleading. Because when reporting we actually don't know
if we have collected enough symbols in perf.data. So move warning
of missing symbols to debug info if we have symbols in perf.data.

Use customized StderrLogger, because simpleperf doesn't need
time,pid,tid information in log.

Bug: http://b/29574526
Test: run simpleperf manually and run simpleperf_unit_test.
Change-Id: I9baf6d8fdcd63907681f2daa45b8fad6bf7e2516
simpleperf/command.cpp
simpleperf/dso.cpp
simpleperf/dso.h