diff options
author | Yabin Cui <yabinc@google.com> | 2017-05-03 16:34:02 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2017-05-03 16:34:02 -0700 |
commit | df6333c5f5a34d4b7853c4671a53fcfd9e5a0b88 (patch) | |
tree | 7d5c9923a82717c784bb32aec89531c3dda7efc3 /simpleperf/main.cpp | |
parent | c248f1f76182d7f5bf7f8d0a5432b4a7bc2befd2 (diff) | |
download | extras-df6333c5f5a34d4b7853c4671a53fcfd9e5a0b88.tar.gz |
simpleperf: add META_INFO feature section in perf.data.
META_INFO section can be used to pass some small information
in perf.data.
Add simpleperf_version in META_INFO section for debugging.
Bug: http://b/37960318
Test: run simpleperf_unit_test.
Change-Id: If17a147bbc77b5af063fbf77e02ca81430afb8a5
Diffstat (limited to 'simpleperf/main.cpp')
-rw-r--r-- | simpleperf/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/simpleperf/main.cpp b/simpleperf/main.cpp index 07b0e4b3..ae3e6292 100644 --- a/simpleperf/main.cpp +++ b/simpleperf/main.cpp @@ -24,8 +24,6 @@ #include "command.h" #include "utils.h" -constexpr int SIMPLEPERF_VERSION = 1; - int main(int argc, char** argv) { android::base::InitLogging(argv, android::base::StderrLogger); std::vector<std::string> args; @@ -46,8 +44,7 @@ int main(int argc, char** argv) { return 1; } } else if (strcmp(argv[i], "--version") == 0) { - LOG(INFO) << "Simpleperf version " << SIMPLEPERF_VERSION << ", revision " - << SIMPLEPERF_REVISION; + LOG(INFO) << "Simpleperf version " << GetSimpleperfVersion(); return 0; } else { args.push_back(argv[i]); |