feat(wtf): add web tracing framework to NavController

This commit is contained in:
Adam Bradley
2015-11-30 14:34:16 -06:00
parent 7f0c53313d
commit 4f8ccb4cba
2 changed files with 25 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
import {Directive, ElementRef, Optional, Host, NgFor, NgIf, forwardRef, ViewContainerRef} from 'angular2/angular2';
import {wtfLeave, wtfCreateScope} from 'angular2/angular2';
import {Ion} from '../ion';
import {Attr} from '../app/id';
@@ -169,8 +170,6 @@ export class Tabs extends Ion {
return Promise.reject();
}
console.time('select tab ' + selectedTab.id);
let deselectedTab = this.getSelected();
if (selectedTab === deselectedTab) {
@@ -178,6 +177,8 @@ export class Tabs extends Ion {
return this._touchActive(selectedTab);
}
let wtfScope = wtfCreateScope('Tabs#select()')();
let opts = {
animate: false
};
@@ -205,8 +206,8 @@ export class Tabs extends Ion {
this._onReady();
this._onReady = null;
}
console.timeEnd('select tab ' + selectedTab.id);
wtfLeave(wtfScope);
});
}