diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-08-29 21:50:32 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-08-29 21:50:32 +0000 |
commit | b6a2b1de22d4691e4372aed5a9a1bc78a7003f4d (patch) | |
tree | c3f85be0f73ac6445f04bdb3187b6401eda4fda4 | |
parent | df142880e86418dad6b40fddb001ebd897919595 (diff) | |
parent | 1a9ec6bc091085ecfa4c3a222f57be5360e418c2 (diff) | |
download | extras-b6a2b1de22d4691e4372aed5a9a1bc78a7003f4d.tar.gz |
Merge "simpleperf: stat: remove percentage in csv output." into android13-tests-dev
-rw-r--r-- | simpleperf/cmd_stat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simpleperf/cmd_stat.cpp b/simpleperf/cmd_stat.cpp index 40a6bb0b..325cb045 100644 --- a/simpleperf/cmd_stat.cpp +++ b/simpleperf/cmd_stat.cpp @@ -141,8 +141,8 @@ void CounterSummaries::ShowCSV(FILE* fp, bool show_thread, bool show_cpu) { if (show_cpu) { fprintf(fp, "%d,", s.cpu); } - fprintf(fp, "%s,%s,%s,(%.0f%%)%s\n", s.readable_count.c_str(), s.Name().c_str(), - s.comment.c_str(), 1.0 / s.scale * 100, (s.auto_generated ? " (generated)," : ",")); + fprintf(fp, "%s,%s,%s,%s\n", s.readable_count.c_str(), s.Name().c_str(), s.comment.c_str(), + (s.auto_generated ? "(generated)," : "")); } } |