Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / trace_viewer / tracing / trace_model / thread.html
index c9ea04e..c586121 100644 (file)
@@ -8,8 +8,8 @@ found in the LICENSE file.
 <link rel="import" href="/tracing/trace_model/slice.html">
 <link rel="import" href="/tracing/trace_model/slice_group.html">
 <link rel="import" href="/tracing/trace_model/async_slice_group.html">
-<link rel="import" href="/tvcm/guid.html">
-<link rel="import" href="/tvcm/range.html">
+<link rel="import" href="/base/guid.html">
+<link rel="import" href="/base/range.html">
 
 <script>
 'use strict';
@@ -17,7 +17,7 @@ found in the LICENSE file.
 /**
  * @fileoverview Provides the Thread class.
  */
-tvcm.exportTo('tracing.trace_model', function() {
+tv.exportTo('tracing.trace_model', function() {
   var Slice = tracing.trace_model.Slice;
   var SliceGroup = tracing.trace_model.SliceGroup;
   var AsyncSlice = tracing.trace_model.AsyncSlice;
@@ -62,7 +62,7 @@ tvcm.exportTo('tracing.trace_model', function() {
    * @constructor
    */
   function Thread(parent, tid) {
-    this.guid_ = tvcm.GUID.allocate();
+    this.guid_ = tv.GUID.allocate();
     if (!parent)
       throw new Error('Parent must be provided.');
     this.parent = parent;
@@ -87,7 +87,7 @@ tvcm.exportTo('tracing.trace_model', function() {
     this.timeSlices = undefined;
     this.kernelSliceGroup = new SliceGroup(this, undefined, 'kernel-slices');
     this.asyncSliceGroup = new AsyncSliceGroup(this, 'async-slices');
-    this.bounds = new tvcm.Range();
+    this.bounds = new tv.Range();
   }
 
   Thread.prototype = {
@@ -249,7 +249,7 @@ tvcm.exportTo('tracing.trace_model', function() {
      * Returns the index of the slice in the timeSlices array, or undefined.
      */
     indexOfTimeSlice: function(timeSlice) {
-      var i = tvcm.findLowIndexInSortedArray(
+      var i = tv.findLowIndexInSortedArray(
           this.timeSlices,
           function(slice) { return slice.start; },
           timeSlice.start);
@@ -271,7 +271,7 @@ tvcm.exportTo('tracing.trace_model', function() {
       cb(this);
       if (this.sliceGroup.length)
         cb(this.sliceGroup);
-      this.asyncSliceGroup.titleSubGroups.forEach(cb);
+      this.asyncSliceGroup.viewSubGroups.forEach(cb);
     },
 
     get samples() {
@@ -292,7 +292,7 @@ tvcm.exportTo('tracing.trace_model', function() {
     if (tmp)
       return tmp;
 
-    tmp = tvcm.comparePossiblyUndefinedValues(
+    tmp = tv.comparePossiblyUndefinedValues(
         x.name, y.name,
         function(x, y) { return x.localeCompare(y); });
     if (tmp)