mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Remove all C++ Telemetry Accumulation calls.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables). Stub resolution/removal should be a follow-up to this.
This commit is contained in:
parent
ac3468d5cc
commit
8c8145e620
186 changed files with 48 additions and 2957 deletions
|
|
@ -39,8 +39,8 @@
|
|||
#include "mozilla/MemoryReporting.h"
|
||||
#include "mozilla/Services.h"
|
||||
#include <stdint.h>
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/Tuple.h"
|
||||
#include "mozilla/ClearOnShutdown.h"
|
||||
#include "mozilla/gfx/Scale.h"
|
||||
|
|
@ -104,9 +104,6 @@ RasterImage::~RasterImage()
|
|||
|
||||
// Release all frames from the surface cache.
|
||||
SurfaceCache::RemoveImage(ImageKey(this));
|
||||
|
||||
// Record Telemetry.
|
||||
Telemetry::Accumulate(Telemetry::IMAGE_DECODE_COUNT, mDecodeCount);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
@ -1365,19 +1362,9 @@ RasterImage::Draw(gfxContext* aContext,
|
|||
return DrawResult::NOT_READY;
|
||||
}
|
||||
|
||||
bool shouldRecordTelemetry = !mDrawStartTime.IsNull() &&
|
||||
surface->IsFinished();
|
||||
|
||||
auto result = DrawInternal(Move(surface), aContext, aSize,
|
||||
aRegion, aSamplingFilter, flags);
|
||||
|
||||
if (shouldRecordTelemetry) {
|
||||
TimeDuration drawLatency = TimeStamp::Now() - mDrawStartTime;
|
||||
Telemetry::Accumulate(Telemetry::IMAGE_DECODE_ON_DRAW_LATENCY,
|
||||
int32_t(drawLatency.ToMicroseconds()));
|
||||
mDrawStartTime = TimeStamp();
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
@ -1614,22 +1601,6 @@ RasterImage::NotifyDecodeComplete(const DecoderFinalStatus& aStatus,
|
|||
mAnimationState->SetDoneDecoding(true);
|
||||
}
|
||||
|
||||
// Do some telemetry if this isn't a metadata decode.
|
||||
if (!aStatus.mWasMetadataDecode) {
|
||||
if (aTelemetry.mChunkCount) {
|
||||
Telemetry::Accumulate(Telemetry::IMAGE_DECODE_CHUNKS, aTelemetry.mChunkCount);
|
||||
}
|
||||
|
||||
if (aStatus.mFinished) {
|
||||
Telemetry::Accumulate(Telemetry::IMAGE_DECODE_TIME,
|
||||
int32_t(aTelemetry.mDecodeTime.ToMicroseconds()));
|
||||
|
||||
if (aTelemetry.mSpeedHistogram) {
|
||||
Telemetry::Accumulate(*aTelemetry.mSpeedHistogram, aTelemetry.Speed());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Only act on errors if we have no usable frames from the decoder.
|
||||
if (aStatus.mHadError &&
|
||||
(!mAnimationState || mAnimationState->KnownFrameCount() == 0)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue