summaryrefslogtreecommitdiff
path: root/pixelstats/SysfsCollector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pixelstats/SysfsCollector.cpp')
-rw-r--r--pixelstats/SysfsCollector.cpp8
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");