Closed
Bug 1121180
Opened 10 years ago
Closed 10 years ago
Support dark theme for flamechart
Categories
(DevTools :: Performance Tools (Profiler/Timeline), defect)
DevTools
Performance Tools (Profiler/Timeline)
Tracking
(firefox40 fixed)
RESOLVED
FIXED
Firefox 40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: ntim, Assigned: jsantell)
References
Details
Attachments
(1 file, 4 obsolete files)
33.59 KB,
patch
|
jsantell
:
review+
|
Details | Diff | Splinter Review |
On dark theme, there are 2 issues :
- The timestamp text is invisible (black text on dark background)
- The time "dividers" are too bright
Updated•10 years ago
|
Blocks: perf-tool-v2
Updated•10 years ago
|
No longer blocks: perf-tool-v2, 1077459
Assignee | ||
Updated•10 years ago
|
Blocks: perf-tool-papercuts
Assignee | ||
Updated•10 years ago
|
Blocks: perf-polish
Assignee | ||
Comment 1•10 years ago
|
||
Lowered opacity, increased saturation/brightness on blocks -- looks better.
Moved the timeline stroke ticks to render behind the flames (visible because blocks are more transparent, but do not get in the way of the text, which was really apparent in the dark theme)
Colors now appropriate for each theme
FlameGraph now a commonjs module
FlameGraph now has `force` option for `refresh`
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4591a6eafb86
Reporter | ||
Comment 2•10 years ago
|
||
Comment on attachment 8588116 [details] [diff] [review]
1121180-dark-flamegraph.patch
Review of attachment 8588116 [details] [diff] [review]:
-----------------------------------------------------------------
This looks much better ! One thing though, can you reduce the opacity of the dividers a bit ? They are much brighter than the ones in the overview view.
Comment 3•10 years ago
|
||
Comment on attachment 8588116 [details] [diff] [review]
1121180-dark-flamegraph.patch
Review of attachment 8588116 [details] [diff] [review]:
-----------------------------------------------------------------
Screenshot?
::: browser/devtools/shared/widgets/FlameGraph.js
@@ +31,5 @@
> const OVERVIEW_HEADER_TEXT_FONT_SIZE = 9; // px
> const OVERVIEW_HEADER_TEXT_FONT_FAMILY = "sans-serif";
> const OVERVIEW_HEADER_TEXT_PADDING_LEFT = 6; // px
> const OVERVIEW_HEADER_TEXT_PADDING_TOP = 5; // px
> +const OVERVIEW_HEADER_TIMELINE_STROKE_COLOR = "#aaaaaa";
Possibly rgba this, so the dividers aren't so gnarly. Using rgba(128,136,144,0.15) like the netmonitor could possibly work, or just (128 ..., 0.25).
@@ +928,5 @@
> }
> }
> };
>
> +const FLAME_GRAPH_BLOCK_HEIGHT = 12; // px
Might want to change this in the other bug regarding text readability.
Attachment #8588116 -
Flags: review?(vporof) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Screenshot from bug 1138928 has this patch applied https://bug1138928.bugzilla.mozilla.org/attachment.cgi?id=8588127
Assignee | ||
Comment 5•10 years ago
|
||
Bug 1144034 for flamechart readability is partially size, but the windows screenshots there I think is something else.
Assignee | ||
Comment 6•10 years ago
|
||
Updated timeline stroke color -- looks good!
Attachment #8588116 -
Attachment is obsolete: true
Attachment #8588350 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 7•10 years ago
|
||
Had to update tests due to size changes. Flame graph tests have always failed locally for me, so this'll be fun to test.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=403f551d5adc
Attachment #8588350 -
Attachment is obsolete: true
Attachment #8588372 -
Flags: review+
Assignee | ||
Comment 8•10 years ago
|
||
You should probably check out the changes to the tests, to make sure everything still makes sense, because of the text size change
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9b1ca9d91b4a
Attachment #8588372 -
Attachment is obsolete: true
Attachment #8588394 -
Flags: review?(vporof)
Comment 9•10 years ago
|
||
Comment on attachment 8588394 [details] [diff] [review]
1121180-dark-flamegraph.patch
Review of attachment 8588394 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/shared/test/browser_flame-graph-utils-01.js
@@ +253,2 @@
> width: 40,
> + height: 12,
Maybe take the opportunity to make all of these computations dynamic based on the const? Here and in all the other tests. Or file a followup.
Attachment #8588394 -
Flags: review?(vporof) → review+
Assignee | ||
Comment 10•10 years ago
|
||
Tests now use FLAME_GRAPH_BLOCK_HEIGHT constant
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e240af53dc2c
Attachment #8588394 -
Attachment is obsolete: true
Attachment #8588684 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 11•10 years ago
|
||
Comment 12•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 40
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•