diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-01-28 02:22:28 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-01-28 02:22:28 +0000 |
commit | 09b439c831a6628c0fce695713b0ae9b9fee2f5f (patch) | |
tree | 7376247af71cbd98fa22ec828f64a9d44c0ae4a1 | |
parent | 9ef3f73fa024eb6cd43a18cca7e0dfbe74975a3c (diff) | |
parent | 4fcdaf781fb173f2d318df1b32abd76ad280e6c5 (diff) |
Snap for 9535926 from 4fcdaf781fb173f2d318df1b32abd76ad280e6c5 to tm-qpr3-release
Change-Id: I05084e63c6940b4e7d104c1d4d1e6d85e9f2532c
-rw-r--r-- | pixelstats/SysfsCollector.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pixelstats/SysfsCollector.cpp b/pixelstats/SysfsCollector.cpp index 203ff0f..69e345b 100644 --- a/pixelstats/SysfsCollector.cpp +++ b/pixelstats/SysfsCollector.cpp @@ -1058,6 +1058,10 @@ void SysfsCollector::logVendorAudioHardwareStats(const std::shared_ptr<IStats> & * Logs the Resume Latency stats. */ void SysfsCollector::logVendorResumeLatencyStats(const std::shared_ptr<IStats> &stats_client) { + std::string uart_enabled = android::base::GetProperty("init.svc.console", ""); + if (uart_enabled == "running") { + return; + } std::string file_contents; if (!kResumeLatencyMetricsPath) { ALOGE("ResumeLatencyMetrics path not specified"); @@ -1182,6 +1186,10 @@ void process_irqatom_values(std::vector<std::pair<int, int64_t>> sorted_pair, * Logs the Long irq stats. */ void SysfsCollector::logVendorLongIRQStatsReported(const std::shared_ptr<IStats> &stats_client) { + std::string uart_enabled = android::base::GetProperty("init.svc.console", ""); + if (uart_enabled == "running") { + return; + } std::string file_contents; if (!kLongIRQMetricsPath) { ALOGV("LongIRQ path not specified"); |