forked from firefox-devtools/profiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
marker-styles.js
119 lines (116 loc) · 2.3 KB
/
marker-styles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// @flow
import * as colors from 'photon-colors';
export const styles = {
default: {
top: 0,
height: 6,
background: 'black',
squareCorners: false,
borderLeft: null,
borderRight: null,
},
RefreshDriverTick: {
background: 'hsla(0,0%,0%,0.05)',
height: 18,
squareCorners: true,
},
RD: {
background: 'hsla(0,0%,0%,0.05)',
height: 18,
squareCorners: true,
},
Scripts: {
background: colors.ORANGE_70,
top: 6,
},
Styles: {
background: colors.TEAL_50,
top: 7,
},
FireScrollEvent: {
background: colors.ORANGE_70,
top: 7,
},
Reflow: {
background: colors.BLUE_50,
top: 7,
},
DispatchSynthMouseMove: {
background: colors.ORANGE_70,
top: 8,
},
DisplayList: {
background: colors.PURPLE_50,
top: 9,
},
LayerBuilding: {
background: colors.ORANGE_50,
top: 9,
},
Rasterize: {
background: colors.GREEN_50,
top: 10,
},
ForwardTransaction: {
background: colors.RED_70,
top: 11,
},
NotifyDidPaint: {
background: colors.GREY_40,
top: 12,
},
LayerTransaction: {
background: colors.RED_70,
},
Composite: {
background: colors.BLUE_50,
},
Vsync: {
background: 'rgb(255, 128, 0)',
},
LayerContentGPU: {
background: 'rgba(0,200,0,0.5)',
},
LayerCompositorGPU: {
background: 'rgba(0,200,0,0.5)',
},
LayerOther: {
background: 'rgb(200,0,0)',
},
Jank: {
background: 'hsl(347, 100%, 60%)',
borderLeft: colors.RED_50,
borderRight: colors.RED_50,
squareCorners: true,
},
GCSlice: {
background: colors.ORANGE_50,
},
GCMinor: {
background: colors.ORANGE_50,
},
ForgetSkippable: {
background: colors.ORANGE_50,
},
IdleForgetSkippable: {
background: colors.ORANGE_50,
},
CCSlice: {
background: colors.ORANGE_50,
},
IdleCCSlice: {
background: colors.ORANGE_50,
},
};
for (const name in styles) {
if (name !== 'default') {
styles[name] = Object.assign({}, styles.default, styles[name]);
}
}
export const overlayFills = {
HOVERED: 'hsla(0,0%,100%,0.3)',
PRESSED: 'rgba(0,0,0,0.3)',
};