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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/extras/v8/v8_gc_stats_thread_slice.html
diff --git a/tracing/tracing/extras/v8/v8_gc_stats_thread_slice.html b/tracing/tracing/extras/v8/v8_gc_stats_thread_slice.html
new file mode 100644
index 0000000000000000000000000000000000000000..3de404f7f65d282974cd8922e06af741eddf6b08
--- /dev/null
+++ b/tracing/tracing/extras/v8/v8_gc_stats_thread_slice.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2016 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+
+<link rel="import" href="/tracing/model/thread_slice.html">
+
+<script>
+'use strict';
+
+tr.exportTo('tr.e.v8', function() {
+ var ThreadSlice = tr.model.ThreadSlice;
+
+ function V8GCStatsThreadSlice() {
+ ThreadSlice.apply(this, arguments);
+ this.liveObjects_ = JSON.parse(this.args['live']);
+ delete this.args['live'];
+ this.deadObjects_ = JSON.parse(this.args['dead']);
+ delete this.args['dead'];
+ }
+
+ V8GCStatsThreadSlice.prototype = {
+ __proto__: ThreadSlice.prototype,
+
+ get liveObjects() {
+ return this.liveObjects_;
+ },
+
+ get deadObjects() {
+ return this.deadObjects_;
+ }
+ };
+
+ ThreadSlice.subTypes.register(
+ V8GCStatsThreadSlice,
+ {
+ categoryParts: ['disabled-by-default-v8.gc_stats'],
+ name: 'v8 gc stats slice',
+ pluralName: 'v8 gc stats slices'
+ }
+ );
+
+ return {
+ V8GCStatsThreadSlice: V8GCStatsThreadSlice
+ };
+});
+</script>
« 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