wtfStartTimeRange

wtfStartTimeRange

Experimental Const

Variable Export

export wtfStartTimeRange

Used to mark Async start. Async are similar to scope but they don't have to be strictly nested. The return value is used in the call to [endAsync]. Async ranges only work if WTF has been enabled.

someMethod() {
   var s = wtfStartTimeRange('HTTP:GET', 'some.url');
   var future = new Future.delay(5).then((_) {
     wtfEndTimeRange(s);
   });
}

exported from core-index defined in core/src/profile/profile.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/core/index/wtfStartTimeRange-let.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部