blob: 3c2e62b6d0b6d03ebf60e21222c6d6dd494276dd [file] [log] [blame]
<!DOCTYPE html>
<!-- Copyright 2018 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. -->
<html lang="en">
<meta charset="UTF-8">
<title>V8 Heap Statistics</title>
<link href='' rel='stylesheet' type='text/css'>
<script type="text/javascript" src=""></script>
<link rel="import" href="details-selection.html">
<link rel="import" href="global-timeline.html">
<link rel="import" href="trace-file-reader.html">
<style type="text/css">
body {
font-family: 'Roboto', sans-serif;
margin-left: 5%;
margin-right: 5%;
<script type="text/javascript">
'use strict';
google.charts.load('current', {'packages':['line', 'corechart']});
function $(id) { return document.querySelector(id); }
function removeAllChildren(node) {
while (node.firstChild) {
let state = Object.create(null);
function globalDataChanged(e) { = e.detail;
// Emit one entry with the whole model for debugging purposes.
state.selection = null;
$('#global-timeline').selection = state.selection;
$('#global-timeline').data =;
$('#type-details').selection = state.selection;
$('#type-details').data =;
$('#details-selection').data =;
function globalSelectionChangedA(e) {
state.selection = e.detail;
$('#global-timeline').selection = state.selection;
$('#type-details').selection = state.selection;
<trace-file-reader onchange="globalDataChanged(event)"></trace-file-reader>
<h1>V8 Heap Statistics</h1>
<p>Visualize object statistics that have been gathered using</p>
<li><code>--trace-gc-object-stats on V8</code></li>
tracing infrastructure</a> collecting data for the category
<code>v8.gc_stats</code>. The trace file needs to be unpacked (e.g. using
Note that the visualizer needs to run on a web server due to HTML imports
requiring <a
<details-selection id="details-selection" onchange="globalSelectionChangedA(event)"></details-selection>
<global-timeline id="global-timeline"></global-timeline>
<type-details id="type-details"></type-details>