Disable widevine metrics

Workaround for mediadrmserver spinning/battery
drain problems.

b/35093325

Change-Id: I71b32435c43d9e467c74d8c18e5a91af903f6b66
This commit is contained in:
Jeff Tinker
2017-02-07 17:52:11 -08:00
parent eeaaf311e1
commit 3c22ce40cd
2 changed files with 11 additions and 1 deletions

View File

@@ -40,7 +40,14 @@ class MetricsFrontEnd {
#define NO_TIME 0
#define M_RECORD(GROUP, METRIC, TIME, ...) \
#if 0 // Disable metrics for now to work around P0:b/35093325
#define M_RECORD(GROUP, METRIC, TIME, ...)
#define M_TIME(CALL, GROUP, METRIC, ...)
#else // Re-enable when we have time to debug
#define M_RECORD(GROUP, METRIC, TIME, ...) \
if ( GROUP ) { \
( GROUP ) -> METRIC . Record( TIME, ##__VA_ARGS__ ); \
}
@@ -54,5 +61,6 @@ class MetricsFrontEnd {
} else { \
CALL; \
}
#endif // Disable
#endif

View File

@@ -393,11 +393,13 @@ MetricsGroup::MetricsGroup() :
"min_version") { }
MetricsGroup::~MetricsGroup() {
#if 0 // Disable metrics for now to work around P0:b/35093325
MetricNotification* subscriber = MFE.CreateSubscriber();
if (subscriber) {
Publish(subscriber);
}
delete subscriber;
#endif
}
void MetricsGroup::Publish(MetricNotification* subscriber) {