forked from mirrors/gecko-dev
Bug 1898515 - Disable clone deserialize instrumentation on Android r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D211382
This commit is contained in:
parent
8adcf91335
commit
1a7d14ac78
1 changed files with 3 additions and 0 deletions
|
|
@ -2572,6 +2572,8 @@ static void AccumulateTelemetryCallback(JSMetric id, uint32_t sample) {
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
switch (id) {
|
switch (id) {
|
||||||
|
// Disable clone.deserialize metrics on Android for perf (bug 1898515).
|
||||||
|
#ifndef MOZ_WIDGET_ANDROID
|
||||||
case JSMetric::DESERIALIZE_BYTES:
|
case JSMetric::DESERIALIZE_BYTES:
|
||||||
glean::performance_clone_deserialize::size.Accumulate(sample);
|
glean::performance_clone_deserialize::size.Accumulate(sample);
|
||||||
break;
|
break;
|
||||||
|
|
@ -2583,6 +2585,7 @@ static void AccumulateTelemetryCallback(JSMetric id, uint32_t sample) {
|
||||||
glean::performance_clone_deserialize::time.AccumulateRawDuration(
|
glean::performance_clone_deserialize::time.AccumulateRawDuration(
|
||||||
TimeDuration::FromMicroseconds(sample));
|
TimeDuration::FromMicroseconds(sample));
|
||||||
break;
|
break;
|
||||||
|
#endif // MOZ_WIDGET_ANDROID
|
||||||
case JSMetric::GC_MS:
|
case JSMetric::GC_MS:
|
||||||
glean::javascript_gc::total_time.AccumulateRawDuration(
|
glean::javascript_gc::total_time.AccumulateRawDuration(
|
||||||
TimeDuration::FromMilliseconds(sample));
|
TimeDuration::FromMilliseconds(sample));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue