OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 var MAX_RANK_SENTINEL = 0; | 5 var MAX_RANK_SENTINEL = 0; |
6 var GRAPH_MARGIN = 250; | 6 var GRAPH_MARGIN = 250; |
7 var WIDTH = 'width'; | 7 var WIDTH = 'width'; |
8 var HEIGHT = 'height'; | 8 var HEIGHT = 'height'; |
9 var VISIBILITY = 'visibility'; | 9 var VISIBILITY = 'visibility'; |
10 var SOURCE_PANE_ID = 'left'; | 10 var SOURCE_PANE_ID = 'left'; |
11 var SOURCE_COLLAPSE_ID = 'source-shrink'; | 11 var SOURCE_COLLAPSE_ID = 'source-shrink'; |
12 var SOURCE_EXPAND_ID = 'source-expand'; | 12 var SOURCE_EXPAND_ID = 'source-expand'; |
13 var INTERMEDIATE_PANE_ID = 'middle'; | 13 var INTERMEDIATE_PANE_ID = 'middle'; |
14 var EMPTY_PANE_ID = 'empty'; | 14 var EMPTY_PANE_ID = 'empty'; |
15 var GRAPH_PANE_ID = 'graph'; | 15 var GRAPH_PANE_ID = 'graph'; |
16 var SCHEDULE_PANE_ID = 'schedule'; | 16 var SCHEDULE_PANE_ID = 'schedule'; |
17 var GENERATED_PANE_ID = 'right'; | 17 var GENERATED_PANE_ID = 'right'; |
18 var DISASSEMBLY_PANE_ID = 'disassembly'; | 18 var DISASSEMBLY_PANE_ID = 'disassembly'; |
19 var DISASSEMBLY_COLLAPSE_ID = 'disassembly-shrink'; | 19 var DISASSEMBLY_COLLAPSE_ID = 'disassembly-shrink'; |
20 var DISASSEMBLY_EXPAND_ID = 'disassembly-expand'; | 20 var DISASSEMBLY_EXPAND_ID = 'disassembly-expand'; |
21 var COLLAPSE_PANE_BUTTON_VISIBLE = 'button-input'; | 21 var COLLAPSE_PANE_BUTTON_VISIBLE = 'button-input'; |
22 var COLLAPSE_PANE_BUTTON_INVISIBLE = 'button-input-invisible'; | 22 var COLLAPSE_PANE_BUTTON_INVISIBLE = 'button-input-invisible'; |
23 var PROF_HIGH = 5; | 23 var UNICODE_BLOCK = '▋'; |
24 var PROF_MED = 0.5; | 24 var PROF_COLS = [ |
| 25 { perc: 0, col: { r: 255, g: 255, b: 255 } }, |
| 26 { perc: 0.5, col: { r: 255, g: 255, b: 128 } }, |
| 27 { perc: 5, col: { r: 255, g: 128, b: 0 } }, |
| 28 { perc: 15, col: { r: 255, g: 0, b: 0 } }, |
| 29 { perc: 100, col: { r: 0, g: 0, b: 0 } } |
| 30 ]; |
OLD | NEW |