<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';
/**
* @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;
* @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;
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 = {
* 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);
cb(this);
if (this.sliceGroup.length)
cb(this.sliceGroup);
- this.asyncSliceGroup.titleSubGroups.forEach(cb);
+ this.asyncSliceGroup.viewSubGroups.forEach(cb);
},
get samples() {
if (tmp)
return tmp;
- tmp = tvcm.comparePossiblyUndefinedValues(
+ tmp = tv.comparePossiblyUndefinedValues(
x.name, y.name,
function(x, y) { return x.localeCompare(y); });
if (tmp)