This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

wtfStartTimeRange

npm Package @angular/core
Module import { wtfStartTimeRange } from '@angular/core';
Source core/src/profile/profile.ts
      
      const wtfStartTimeRange: any;
    

Description

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); }); }