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

Unified Diff: tracing/tracing/model/cpu.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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/tracing/model/counter_series.html ('k') | tracing/tracing/model/device.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/cpu.html
diff --git a/tracing/tracing/model/cpu.html b/tracing/tracing/model/cpu.html
index 0ded8a7a76a8139699ca99a024ebf97f2d9fb8fe..2194e462185fbb33329bd6b2827bcdfdec9bc634 100644
--- a/tracing/tracing/model/cpu.html
+++ b/tracing/tracing/model/cpu.html
@@ -51,7 +51,7 @@ tr.exportTo('tr.model', function() {
};
Cpu.prototype = {
- __proto__: tr.model.ProcessBase.prototype,
+ __proto__: tr.model.EventContainer.prototype,
get samples() {
return this.samples_;
@@ -61,23 +61,19 @@ tr.exportTo('tr.model', function() {
return 'CPU ' + this.cpuNumber;
},
- findTopmostSlicesInThisContainer: function(eventPredicate, callback,
- opt_this) {
+ findTopmostSlicesInThisContainer: function*(eventPredicate, opt_this) {
// All CpuSlices are toplevel since CpuSlices do not nest.
- this.slices.forEach(function(s) {
- s.findTopmostSlicesRelativeToThisSlice(eventPredicate, callback,
- opt_this);
- });
+ for (var s of slices) {
+ yield * s.findTopmostSlicesRelativeToThisSlice(
+ eventPredicate, opt_this);
+ }
},
- childEvents: function*(eventTypePredicate, opt_this) {
- if (eventTypePredicate.call(opt_this, tr.model.CpuSlice))
- yield * this.slices;
+ childEvents: function*() {
+ yield * this.slices;
- if (this.samples_) {
- if (eventTypePredicate.call(opt_this, tr.model.Sample))
- yield * this.samples_;
- }
+ if (this.samples_)
+ yield * this.samples_;
},
childEventContainers: function*() {
« no previous file with comments | « tracing/tracing/model/counter_series.html ('k') | tracing/tracing/model/device.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698