Bug 1338011 - Adds some telemetry probes - f=bsmedberg r=gerald
MozReview-Commit-ID: BmwEjBiCBNo
This commit is contained in:
@@ -51,6 +51,13 @@ namespace gfx {
|
||||
|
||||
using namespace mozilla::layers;
|
||||
|
||||
enum class FallbackType : uint32_t
|
||||
{
|
||||
NONE = 0,
|
||||
DECODINGDISABLED,
|
||||
DISABLED,
|
||||
};
|
||||
|
||||
static StaticAutoPtr<GPUProcessManager> sSingleton;
|
||||
|
||||
GPUProcessManager*
|
||||
@@ -163,6 +170,9 @@ GPUProcessManager::DisableGPUProcess(const char* aMessage)
|
||||
|
||||
gfxPlatform::NotifyGPUProcessDisabled();
|
||||
|
||||
Telemetry::Accumulate(Telemetry::GPU_PROCESS_CRASH_FALLBACKS,
|
||||
uint32_t(FallbackType::DISABLED));
|
||||
|
||||
DestroyProcess();
|
||||
ShutdownVsyncIOThread();
|
||||
}
|
||||
@@ -379,8 +389,14 @@ GPUProcessManager::OnProcessUnexpectedShutdown(GPUProcessHost* aHost)
|
||||
SprintfLiteral(disableMessage, "GPU process disabled after %d attempts",
|
||||
mNumProcessAttempts);
|
||||
DisableGPUProcess(disableMessage);
|
||||
} else if (mNumProcessAttempts > uint32_t(gfxPrefs::GPUProcessMaxRestartsWithDecoder())) {
|
||||
} else if (mNumProcessAttempts > uint32_t(gfxPrefs::GPUProcessMaxRestartsWithDecoder()) &&
|
||||
mDecodeVideoOnGpuProcess) {
|
||||
mDecodeVideoOnGpuProcess = false;
|
||||
Telemetry::Accumulate(Telemetry::GPU_PROCESS_CRASH_FALLBACKS,
|
||||
uint32_t(FallbackType::DECODINGDISABLED));
|
||||
} else {
|
||||
Telemetry::Accumulate(Telemetry::GPU_PROCESS_CRASH_FALLBACKS,
|
||||
uint32_t(FallbackType::NONE));
|
||||
}
|
||||
|
||||
HandleProcessLost();
|
||||
|
||||
Reference in New Issue
Block a user