зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1347302. Add animated image specific probes for several imagelib telemetry probes. r=aosmond f=bsmedberg
This commit is contained in:
Родитель
b98245c5fc
Коммит
f088324ed2
|
@ -107,6 +107,9 @@ RasterImage::~RasterImage()
|
|||
|
||||
// Record Telemetry.
|
||||
Telemetry::Accumulate(Telemetry::IMAGE_DECODE_COUNT, mDecodeCount);
|
||||
if (mAnimationState) {
|
||||
Telemetry::Accumulate(Telemetry::IMAGE_ANIMATED_DECODE_COUNT, mDecodeCount);
|
||||
}
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
@ -1428,6 +1431,11 @@ RasterImage::Draw(gfxContext* aContext,
|
|||
TimeDuration drawLatency = TimeStamp::Now() - mDrawStartTime;
|
||||
Telemetry::Accumulate(Telemetry::IMAGE_DECODE_ON_DRAW_LATENCY,
|
||||
int32_t(drawLatency.ToMicroseconds()));
|
||||
if (mAnimationState) {
|
||||
Telemetry::Accumulate(Telemetry::IMAGE_ANIMATED_DECODE_ON_DRAW_LATENCY,
|
||||
int32_t(drawLatency.ToMicroseconds()));
|
||||
|
||||
}
|
||||
mDrawStartTime = TimeStamp();
|
||||
}
|
||||
|
||||
|
@ -1677,6 +1685,11 @@ RasterImage::NotifyDecodeComplete(const DecoderFinalStatus& aStatus,
|
|||
Telemetry::Accumulate(Telemetry::IMAGE_DECODE_TIME,
|
||||
int32_t(aTelemetry.mDecodeTime.ToMicroseconds()));
|
||||
|
||||
if (mAnimationState) {
|
||||
Telemetry::Accumulate(Telemetry::IMAGE_ANIMATED_DECODE_TIME,
|
||||
int32_t(aTelemetry.mDecodeTime.ToMicroseconds()));
|
||||
}
|
||||
|
||||
if (aTelemetry.mSpeedHistogram) {
|
||||
Telemetry::Accumulate(*aTelemetry.mSpeedHistogram, aTelemetry.Speed());
|
||||
}
|
||||
|
|
|
@ -1444,6 +1444,16 @@
|
|||
"n_buckets": 100,
|
||||
"description": "Time spent decoding an image (us)"
|
||||
},
|
||||
"IMAGE_ANIMATED_DECODE_TIME": {
|
||||
"alert_emails": ["gfx-telemetry-alerts@mozilla.com"],
|
||||
"bug_numbers": [1347302],
|
||||
"expires_in_version": "57",
|
||||
"kind": "exponential",
|
||||
"low": 50,
|
||||
"high": 50000000,
|
||||
"n_buckets": 100,
|
||||
"description": "Time spent decoding an animated image (us)"
|
||||
},
|
||||
"IMAGE_DECODE_ON_DRAW_LATENCY": {
|
||||
"expires_in_version": "never",
|
||||
"kind": "exponential",
|
||||
|
@ -1452,6 +1462,16 @@
|
|||
"n_buckets": 100,
|
||||
"description": "Time from starting a decode to it showing up on the screen (us)"
|
||||
},
|
||||
"IMAGE_ANIMATED_DECODE_ON_DRAW_LATENCY": {
|
||||
"alert_emails": ["gfx-telemetry-alerts@mozilla.com"],
|
||||
"bug_numbers": [1347302],
|
||||
"expires_in_version": "57",
|
||||
"kind": "exponential",
|
||||
"low": 50,
|
||||
"high": 50000000,
|
||||
"n_buckets": 100,
|
||||
"description": "Time from starting a decode of an animated image to it showing up on the screen (us)"
|
||||
},
|
||||
"IMAGE_DECODE_CHUNKS": {
|
||||
"expires_in_version": "never",
|
||||
"kind": "exponential",
|
||||
|
@ -1466,6 +1486,15 @@
|
|||
"n_buckets": 50,
|
||||
"description": "Decode count"
|
||||
},
|
||||
"IMAGE_ANIMATED_DECODE_COUNT": {
|
||||
"alert_emails": ["gfx-telemetry-alerts@mozilla.com"],
|
||||
"bug_numbers": [1347302],
|
||||
"expires_in_version": "57",
|
||||
"kind": "exponential",
|
||||
"high": 500,
|
||||
"n_buckets": 50,
|
||||
"description": "Decode count of animated images"
|
||||
},
|
||||
"IMAGE_DECODE_SPEED_JPEG": {
|
||||
"expires_in_version": "never",
|
||||
"kind": "exponential",
|
||||
|
|
Загрузка…
Ссылка в новой задаче