Disable widevine metrics
Workaround for mediadrmserver spinning/battery drain problems. b/35093325 Change-Id: I71b32435c43d9e467c74d8c18e5a91af903f6b66
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user