| Index: tracing/tracing/model/time_to_object_instance_map.html
|
| diff --git a/tracing/tracing/model/time_to_object_instance_map.html b/tracing/tracing/model/time_to_object_instance_map.html
|
| index bd30fc102bc73f9b833392502762e7f809d3a41c..5b54daa102816d8517b81cd4c289650ad4ed9667 100644
|
| --- a/tracing/tracing/model/time_to_object_instance_map.html
|
| +++ b/tracing/tracing/model/time_to_object_instance_map.html
|
| @@ -34,7 +34,7 @@ tr.exportTo('tr.model', function() {
|
|
|
| TimeToObjectInstanceMap.prototype = {
|
| idWasCreated: function(category, name, ts) {
|
| - if (this.instances.length == 0) {
|
| + if (this.instances.length === 0) {
|
| this.instances.push(this.createObjectInstanceFunction_(
|
| this.parent, this.scopedId, category, name, ts));
|
| this.instances[0].creationTsWasExplicit = true;
|
| @@ -54,7 +54,7 @@ tr.exportTo('tr.model', function() {
|
| },
|
|
|
| addSnapshot: function(category, name, ts, args, opt_baseTypeName) {
|
| - if (this.instances.length == 0) {
|
| + if (this.instances.length === 0) {
|
| this.instances.push(this.createObjectInstanceFunction_(
|
| this.parent, this.scopedId, category, name, ts, opt_baseTypeName));
|
| }
|
| @@ -74,7 +74,7 @@ tr.exportTo('tr.model', function() {
|
| 'At the provided timestamp, no instance was still alive');
|
| }
|
|
|
| - if (instance.snapshots.length != 0) {
|
| + if (instance.snapshots.length !== 0) {
|
| throw new Error(
|
| 'Cannot shift creationTs forward, ' +
|
| 'snapshots have been added. First snap was at ts=' +
|
| @@ -104,7 +104,8 @@ tr.exportTo('tr.model', function() {
|
| var tmp = this.instances[i];
|
| if (ts >= tmp.deletionTs)
|
| break;
|
| - if (tmp.creationTsWasExplicit == false && tmp.snapshots.length == 0)
|
| + if (tmp.creationTsWasExplicit === false &&
|
| + tmp.snapshots.length === 0)
|
| lastValidIndex = i;
|
| }
|
| if (lastValidIndex === undefined) {
|
| @@ -122,20 +123,20 @@ tr.exportTo('tr.model', function() {
|
| },
|
|
|
| get lastInstance() {
|
| - if (this.instances.length == 0)
|
| + if (this.instances.length === 0)
|
| return undefined;
|
| return this.instances[this.instances.length - 1];
|
| },
|
|
|
| idWasDeleted: function(category, name, ts) {
|
| - if (this.instances.length == 0) {
|
| + if (this.instances.length === 0) {
|
| this.instances.push(this.createObjectInstanceFunction_(
|
| this.parent, this.scopedId, category, name, ts));
|
| }
|
| var lastInstance = this.instances[this.instances.length - 1];
|
| if (ts < lastInstance.creationTs)
|
| throw new Error('Cannot delete an id before it was created');
|
| - if (lastInstance.deletionTs == Number.MAX_VALUE) {
|
| + if (lastInstance.deletionTs === Number.MAX_VALUE) {
|
| lastInstance.wasDeleted(ts);
|
| return lastInstance;
|
| }
|
|
|