diff --git a/image/src/Decoder.cpp b/image/src/Decoder.cpp index 9ffd07532f9..2d895724780 100644 --- a/image/src/Decoder.cpp +++ b/image/src/Decoder.cpp @@ -8,6 +8,7 @@ #include "nsIServiceManager.h" #include "nsIConsoleService.h" #include "nsIScriptError.h" +#include "sampler.h" namespace mozilla { namespace image { @@ -67,6 +68,8 @@ Decoder::InitSharedDecoder() void Decoder::Write(const char* aBuffer, uint32_t aCount) { + SAMPLE_LABEL("ImageDecoder", "Write"); + // We're strict about decoder errors NS_ABORT_IF_FALSE(!HasDecoderError(), "Not allowed to make more decoder calls after error!");