diff options
author | Chiawei Wang <chiaweiwang@google.com> | 2021-04-15 23:13:32 +0800 |
---|---|---|
committer | Chiawei Wang <chiaweiwang@google.com> | 2021-04-16 01:25:55 +0800 |
commit | 18e14b8ed6c0defe979ff1de0fc84ef2d1353c04 (patch) | |
tree | 58c22be9c533c934ab545e7c0aac917bea403c8e /pixelstats/MmMetricsReporter.cpp | |
parent | 3f30c7f16c2d53c83b7544501ba79b2184f2aef4 (diff) |
pixelstats: add unit of stime of kswapd and kcompactd.
According to fs/proc/array.c in kernel, the unit of stime
in /proc/<pid>/stat should be clocks.
Bug: 173101018
Test: adb shell cmd stats print-stats | grep 105016
Test: adb shell cmd stats print-logs
adb logcat | grep 105016
Change-Id: I15c73d80106e2d815a5582541b27264dc19ba7bf
Diffstat (limited to 'pixelstats/MmMetricsReporter.cpp')
-rw-r--r-- | pixelstats/MmMetricsReporter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pixelstats/MmMetricsReporter.cpp b/pixelstats/MmMetricsReporter.cpp index cbedd73..9ff2613 100644 --- a/pixelstats/MmMetricsReporter.cpp +++ b/pixelstats/MmMetricsReporter.cpp @@ -329,10 +329,10 @@ void MmMetricsReporter::logPixelMmMetricsPerDay(const std::shared_ptr<IStats> &s std::map<std::string, uint64_t> pixel_vmstat = readVmStat(android::base::StringPrintf("%s/vmstat", kPixelStatMm).c_str()); fillAtomValues(kMmMetricsPerDayInfo, pixel_vmstat, &prev_day_pixel_vmstat_, &values); - fillProcessStime(PixelMmMetricsPerDay::kKswapdTimeFieldNumber, "kswapd0", &kswapd_pid_, + fillProcessStime(PixelMmMetricsPerDay::kKswapdStimeClksFieldNumber, "kswapd0", &kswapd_pid_, &prev_kswapd_stime_, &values); - fillProcessStime(PixelMmMetricsPerDay::kKcompactdTimeFieldNumber, "kcompactd0", &kcompactd_pid_, - &prev_kcompactd_stime_, &values); + fillProcessStime(PixelMmMetricsPerDay::kKcompactdStimeClksFieldNumber, "kcompactd0", + &kcompactd_pid_, &prev_kcompactd_stime_, &values); // Don't report the first atom to avoid big spike in accumulated values. if (!is_first_atom) { |