Closed Bug 1379813 Opened 7 years ago Closed 7 years ago

Annotate crash reports with the GPU process generation number

Categories

(Core :: Graphics: Layers, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: dvander, Assigned: domfarolino)

Details

Attachments

(1 file, 2 obsolete files)

We currently annotate crash reports with whether or not the GPU process is currently running [1]. Milan suggested we add a new annotation with the number of times the GPU process has been launched (available in mNumProcessAttempts). "GPUProcessLaunchCount" might be a reasonable key name.

This will help us see if crashes are more likely after a relaunch than an initial launch.

[1] http://searchfox.org/mozilla-central/source/gfx/ipc/GPUProcessManager.cpp#366
Attached patch bug1379813.patch (obsolete) — Splinter Review
Attachment #8885947 - Flags: review?(dvander)
Comment on attachment 8885947 [details] [diff] [review]
bug1379813.patch

Review of attachment 8885947 [details] [diff] [review]:
-----------------------------------------------------------------

::: gfx/ipc/GPUProcessManager.cpp
@@ +365,5 @@
>    CrashReporter::AnnotateCrashReport(
>      NS_LITERAL_CSTRING("GPUProcessStatus"),
>      NS_LITERAL_CSTRING("Running"));
> +
> +CrashReporter::AnnotateCrashReport(

nit: two-space indent, use "%d" (more idiomatic in gecko)

@@ +661,5 @@
>    CrashReporter::AnnotateCrashReport(
>      NS_LITERAL_CSTRING("GPUProcessStatus"),
>      NS_LITERAL_CSTRING("Destroyed"));
> +
> +CrashReporter::AnnotateCrashReport(

Just the first annotation is enough. The count only changes on launch.
Attachment #8885947 - Flags: review?(dvander)
Attached patch bug1379813.patch (obsolete) — Splinter Review
Attachment #8885947 - Attachment is obsolete: true
Attachment #8886279 - Flags: review?(dvander)
Comment on attachment 8886279 [details] [diff] [review]
bug1379813.patch

Review of attachment 8886279 [details] [diff] [review]:
-----------------------------------------------------------------

::: gfx/ipc/GPUProcessManager.cpp
@@ +367,5 @@
>    CrashReporter::AnnotateCrashReport(
>      NS_LITERAL_CSTRING("GPUProcessStatus"),
>      NS_LITERAL_CSTRING("Running"));
> +
> +CrashReporter::AnnotateCrashReport(

Indentation is still off here.
Attachment #8886279 - Flags: review?(dvander)
Attached patch bug1379813.patchSplinter Review
Whoops, forgot to address your other two nits!
Attachment #8886279 - Attachment is obsolete: true
Attachment #8886344 - Flags: review?(dvander)
Attachment #8886344 - Flags: review?(dvander) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/35beba17c550
Annotate crash reports with the number of times the GPU process has been launched. r=dvander
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/35beba17c550
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: