• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3// found in the LICENSE file.
4
5var MAX_RANK_SENTINEL = 0;
6var GRAPH_MARGIN = 250;
7var WIDTH = 'width';
8var HEIGHT = 'height';
9var VISIBILITY = 'visibility';
10var SOURCE_PANE_ID = 'left';
11var SOURCE_COLLAPSE_ID = 'source-shrink';
12var SOURCE_EXPAND_ID = 'source-expand';
13var INTERMEDIATE_PANE_ID = 'middle';
14var EMPTY_PANE_ID = 'empty';
15var GRAPH_PANE_ID = 'graph';
16var SCHEDULE_PANE_ID = 'schedule';
17var GENERATED_PANE_ID = 'right';
18var DISASSEMBLY_PANE_ID = 'disassembly';
19var DISASSEMBLY_COLLAPSE_ID = 'disassembly-shrink';
20var DISASSEMBLY_EXPAND_ID = 'disassembly-expand';
21var COLLAPSE_PANE_BUTTON_VISIBLE = 'button-input';
22var COLLAPSE_PANE_BUTTON_INVISIBLE = 'button-input-invisible';
23var UNICODE_BLOCK = '▋';
24var 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];
31