summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2022-08-25 11:06:39 -0700
committerIris Chang <iris.chang@mediatek.com>2022-08-29 07:22:02 +0000
commit1a9ec6bc091085ecfa4c3a222f57be5360e418c2 (patch)
treec3f85be0f73ac6445f04bdb3187b6401eda4fda4
parentdf142880e86418dad6b40fddb001ebd897919595 (diff)
downloadextras-1a9ec6bc091085ecfa4c3a222f57be5360e418c2.tar.gz
simpleperf: stat: remove percentage in csv output.
Because percentage isn't correct after we open an event for each cpu. Bug: 243065368 Bug: 243479304 Test: run simpleperf_unit_test Change-Id: I67bc23594e82afce040de7755deb9b274b8ad8b8 (cherry picked from commit abc8ee2e0f792d24562405159ae46be19a1c8acb)
-rw-r--r--simpleperf/cmd_stat.cpp4
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)," : ""));
}
}