summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2022-08-25 11:06:39 -0700
committerYabin Cui <yabinc@google.com>2022-08-29 14:14:40 -0700
commite275d1e943acdaeaaa644dc7cb1db5c4cf73f4e8 (patch)
tree7423d08ebb843064b0a468d3007a7e6f56287aa2
parent9f3c6f5ba4e45ea1564b8d8fd5b2f9b6f59a285c (diff)
downloadextras-e275d1e943acdaeaaa644dc7cb1db5c4cf73f4e8.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 bd2cc5e3..bd1bffba 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)," : ""));
}
}