286e2b14a5
perf-turbo.py merges a perf data file and a turbofan trace file into a single json object which can then be piped to a file and uploaded to turbolizer to display the profiling data in the disassembly. With the changes, turbolizer now shows the event counts for instruction in percentage form and with heatmap-stype colouring. Multiple different events can be recorded at once with a new drop-down menu to select which event to view the counts of. The documentation has been updated with instructions. Using the script is optional and turbolizer retains previous functionality if a trace without profiling data is uploaded. BUG=None Review-Url: https://codereview.chromium.org/2174803002 Cr-Commit-Position: refs/heads/master@{#38124}
25 lines
864 B
JavaScript
25 lines
864 B
JavaScript
// Copyright 2014 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
var MAX_RANK_SENTINEL = 0;
|
|
var GRAPH_MARGIN = 250;
|
|
var WIDTH = 'width';
|
|
var HEIGHT = 'height';
|
|
var VISIBILITY = 'visibility';
|
|
var SOURCE_PANE_ID = 'left';
|
|
var SOURCE_COLLAPSE_ID = 'source-shrink';
|
|
var SOURCE_EXPAND_ID = 'source-expand';
|
|
var INTERMEDIATE_PANE_ID = 'middle';
|
|
var EMPTY_PANE_ID = 'empty';
|
|
var GRAPH_PANE_ID = 'graph';
|
|
var SCHEDULE_PANE_ID = 'schedule';
|
|
var GENERATED_PANE_ID = 'right';
|
|
var DISASSEMBLY_PANE_ID = 'disassembly';
|
|
var DISASSEMBLY_COLLAPSE_ID = 'disassembly-shrink';
|
|
var DISASSEMBLY_EXPAND_ID = 'disassembly-expand';
|
|
var COLLAPSE_PANE_BUTTON_VISIBLE = 'button-input';
|
|
var COLLAPSE_PANE_BUTTON_INVISIBLE = 'button-input-invisible';
|
|
var PROF_HIGH = 5;
|
|
var PROF_MED = 0.5;
|