Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: tracing/tracing/extras/v8/v8_gc_stats_thread_slice.html

Issue 2386873002: Implement single/multi V8 GC objects statistics sub view. (Closed)
Patch Set: update Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tracing/trace_viewer.gypi ('k') | tracing/tracing/ui/analysis/related_events.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!--
3 Copyright (c) 2016 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
7
8 <link rel="import" href="/tracing/model/thread_slice.html">
9
10 <script>
11 'use strict';
12
13 tr.exportTo('tr.e.v8', function() {
14 var ThreadSlice = tr.model.ThreadSlice;
15
16 function V8GCStatsThreadSlice() {
17 ThreadSlice.apply(this, arguments);
18 this.liveObjects_ = JSON.parse(this.args['live']);
19 delete this.args['live'];
20 this.deadObjects_ = JSON.parse(this.args['dead']);
21 delete this.args['dead'];
22 }
23
24 V8GCStatsThreadSlice.prototype = {
25 __proto__: ThreadSlice.prototype,
26
27 get liveObjects() {
28 return this.liveObjects_;
29 },
30
31 get deadObjects() {
32 return this.deadObjects_;
33 }
34 };
35
36 ThreadSlice.subTypes.register(
37 V8GCStatsThreadSlice,
38 {
39 categoryParts: ['disabled-by-default-v8.gc_stats'],
40 name: 'v8 gc stats slice',
41 pluralName: 'v8 gc stats slices'
42 }
43 );
44
45 return {
46 V8GCStatsThreadSlice: V8GCStatsThreadSlice
47 };
48 });
49 </script>
OLDNEW
« no previous file with comments | « tracing/trace_viewer.gypi ('k') | tracing/tracing/ui/analysis/related_events.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698