Merge "Disable widevine metrics"
This commit is contained in:
@@ -40,7 +40,14 @@ class MetricsFrontEnd {
|
|||||||
|
|
||||||
#define NO_TIME 0
|
#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 ) { \
|
if ( GROUP ) { \
|
||||||
( GROUP ) -> METRIC . Record( TIME, ##__VA_ARGS__ ); \
|
( GROUP ) -> METRIC . Record( TIME, ##__VA_ARGS__ ); \
|
||||||
}
|
}
|
||||||
@@ -54,5 +61,6 @@ class MetricsFrontEnd {
|
|||||||
} else { \
|
} else { \
|
||||||
CALL; \
|
CALL; \
|
||||||
}
|
}
|
||||||
|
#endif // Disable
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -393,11 +393,13 @@ MetricsGroup::MetricsGroup() :
|
|||||||
"min_version") { }
|
"min_version") { }
|
||||||
|
|
||||||
MetricsGroup::~MetricsGroup() {
|
MetricsGroup::~MetricsGroup() {
|
||||||
|
#if 0 // Disable metrics for now to work around P0:b/35093325
|
||||||
MetricNotification* subscriber = MFE.CreateSubscriber();
|
MetricNotification* subscriber = MFE.CreateSubscriber();
|
||||||
if (subscriber) {
|
if (subscriber) {
|
||||||
Publish(subscriber);
|
Publish(subscriber);
|
||||||
}
|
}
|
||||||
delete subscriber;
|
delete subscriber;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetricsGroup::Publish(MetricNotification* subscriber) {
|
void MetricsGroup::Publish(MetricNotification* subscriber) {
|
||||||
|
|||||||
Reference in New Issue
Block a user