Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / trace_viewer / tracing / trace_model / thread.html
index 3f313d0..c9ea04e 100644 (file)
@@ -83,12 +83,11 @@ tvcm.exportTo('tracing.trace_model', function() {
       __proto__: ThreadSlice.prototype
     };
 
-    this.sliceGroup = new SliceGroup(ThreadSliceForThisThread);
+    this.sliceGroup = new SliceGroup(this, ThreadSliceForThisThread, 'slices');
     this.timeSlices = undefined;
-    this.kernelSliceGroup = new SliceGroup();
-    this.asyncSliceGroup = new AsyncSliceGroup();
+    this.kernelSliceGroup = new SliceGroup(this, undefined, 'kernel-slices');
+    this.asyncSliceGroup = new AsyncSliceGroup(this, 'async-slices');
     this.bounds = new tvcm.Range();
-    this.ephemeralSettings = {};
   }
 
   Thread.prototype = {
@@ -210,7 +209,7 @@ tvcm.exportTo('tracing.trace_model', function() {
         var newSlices = SliceGroup.merge(
             this.sliceGroup, this.kernelSliceGroup);
         this.sliceGroup.slices = newSlices.slices;
-        this.kernelSliceGroup = new SliceGroup();
+        this.kernelSliceGroup = new SliceGroup(this);
         this.updateBounds();
       }
     },
@@ -268,6 +267,13 @@ tvcm.exportTo('tracing.trace_model', function() {
         this.timeSlices.forEach(callback, opt_this);
     },
 
+    iterateAllPersistableObjects: function(cb) {
+      cb(this);
+      if (this.sliceGroup.length)
+        cb(this.sliceGroup);
+      this.asyncSliceGroup.titleSubGroups.forEach(cb);
+    },
+
     get samples() {
       return this.samples_;
     }