Closed
Bug 1129763
Opened 10 years ago
Closed 10 years ago
Add pref to modify the timing to display the visual warning for long transaction
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla38
| Tracking | Status | |
|---|---|---|
| firefox38 | --- | fixed |
People
(Reporter: pchang, Assigned: pchang)
Details
Attachments
(1 file, 1 obsolete file)
|
4.71 KB,
patch
|
pchang
:
review+
|
Details | Diff | Splinter Review |
The timing to display the visual warning for long transaction is 200 ms and the long transaction usually happens because of the time cost for content rendering. Adding the preference to customize the timing can help us to detect some apps that spend time more than 16 ms but less than 200 ms.
| Assignee | ||
Comment 1•10 years ago
|
||
BTW, I think it is also useflu to dump the child process id when the long transaction happens, especially the app switches in b2g.
| Assignee | ||
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Comment on attachment 8559626 [details] [diff] [review]
Add pref for the threshold of frame visual warning
Review of attachment 8559626 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/ipc/LayerTransactionParent.cpp
@@ +625,5 @@
> + severity = 1.f;
> + }
> + mLayerManager->VisualFrameWarning(severity);
> +#ifdef PR_LOGGING
> + PR_LogPrint("LayerTransactionParent::RecvUpdate transaction from process %d took %f ms %p",
Looks like you have an extra %p.
::: gfx/thebes/gfxPrefs.h
@@ +277,5 @@
> DECL_GFX_PREF(Live, "layers.dump-decision", LayersDumpDecision, bool, false);
> DECL_GFX_PREF(Live, "layers.dump-client-layers", DumpClientLayers, bool, false);
> DECL_GFX_PREF(Live, "layers.dump-host-layers", DumpHostLayers, bool, false);
> #endif
> + DECL_GFX_PREF(Live, "layers.transaction.warning_ms", LayerTransactionWarning, uint32_t, 200);
warning-ms to be consistent with the layers.* preferences
Attachment #8559626 -
Flags: review?(bgirard) → review+
| Assignee | ||
Comment 4•10 years ago
|
||
Update patch to address reviewer's comment.
Attachment #8559626 -
Attachment is obsolete: true
Attachment #8560274 -
Flags: review+
| Assignee | ||
Comment 5•10 years ago
|
||
| Assignee | ||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•