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

Side by Side Diff: tracing/tracing/ui/analysis/related_events.html

Issue 2386873002: Implement single/multi V8 GC objects statistics sub view. (Closed)
Patch Set: remove diff 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2015 The Chromium Authors. All rights reserved. 3 Copyright (c) 2015 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/range.html"> 8 <link rel="import" href="/tracing/base/range.html">
9 <link rel="import" href="/tracing/base/task.html"> 9 <link rel="import" href="/tracing/base/task.html">
10 <link rel="import" href="/tracing/model/event_set.html"> 10 <link rel="import" href="/tracing/model/event_set.html">
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 }, 91 },
92 92
93 hasRelatedEvents: function() { 93 hasRelatedEvents: function() {
94 return (this.eventGroups_ && this.eventGroups_.length > 0); 94 return (this.eventGroups_ && this.eventGroups_.length > 0);
95 }, 95 },
96 96
97 setRelatedEvents: function(eventSet) { 97 setRelatedEvents: function(eventSet) {
98 this.cancelAllTasks_(); 98 this.cancelAllTasks_();
99 this.eventGroups_ = []; 99 this.eventGroups_ = [];
100 this.addRuntimeCallStats_(eventSet); 100 this.addRuntimeCallStats_(eventSet);
101 this.addGCObjectStats_(eventSet);
101 this.addV8Slices_(eventSet); 102 this.addV8Slices_(eventSet);
102 this.addConnectedFlows_(eventSet); 103 this.addConnectedFlows_(eventSet);
103 this.addConnectedEvents_(eventSet); 104 this.addConnectedEvents_(eventSet);
104 this.addOverlappingSamples_(eventSet); 105 this.addOverlappingSamples_(eventSet);
105 this.updateContents_(); 106 this.updateContents_();
106 }, 107 },
107 108
108 addConnectedFlows_: function(eventSet) { 109 addConnectedFlows_: function(eventSet) {
109 var classifier = new tr.ui.analysis.FlowClassifier(); 110 var classifier = new tr.ui.analysis.FlowClassifier();
110 eventSet.forEach(function(slice) { 111 eventSet.forEach(function(slice) {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 if (slices.length > 0) { 290 if (slices.length > 0) {
290 this.eventGroups_.push({ 291 this.eventGroups_.push({
291 type: 'Runtime call stats table', 292 type: 'Runtime call stats table',
292 // eslint-disable-next-line 293 // eslint-disable-next-line
293 tooltip: 'All V8 slices containing runtime call stats table in the selec ted slice(s).', 294 tooltip: 'All V8 slices containing runtime call stats table in the selec ted slice(s).',
294 selection: slices 295 selection: slices
295 }); 296 });
296 } 297 }
297 }, 298 },
298 299
300 addGCObjectStats_: function(eventSet) {
fmeawad 2016/10/04 17:50:55 nit: addV8GCObjectStats_
lpy 2016/10/05 17:44:28 Done.
301 var slices = new tr.model.EventSet;
302 for (var slice of eventSet) {
303 if (slice.title === 'V8.GC_Objects_Stats')
304 slices.push(slice);
305 }
306 if (slices.length > 0) {
307 this.eventGroups_.push({
308 type: 'V8 GC stats table',
309 // eslint-disable-next-line
310 tooltip: 'All V8 slices containing GC statistics in the selected slice(s ).',
fmeawad 2016/10/04 17:50:55 nit: selected set.
lpy 2016/10/05 17:44:27 Done.
311 selection: slices
312 });
313 }
314 },
315
299 updateContents_: function() { 316 updateContents_: function() {
300 var table = this.$.table; 317 var table = this.$.table;
301 if (this.eventGroups_ === undefined) 318 if (this.eventGroups_ === undefined)
302 table.tableRows = []; 319 table.tableRows = [];
303 else 320 else
304 table.tableRows = this.eventGroups_.slice(); 321 table.tableRows = this.eventGroups_.slice();
305 table.rebuild(); 322 table.rebuild();
306 } 323 }
307 }); 324 });
308 </script> 325 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698