-
Notifications
You must be signed in to change notification settings - Fork 248
Profiling AngularDart Applications
AngularDart is a framework for building Web-Applications. The job of the framework is to handle common repetitive tasks and abstract away the drudgery of building against the low level API. As such it is a black box to most applications. When performance problems arise, there needs to be a way to understand what the framework is doing.
Web Tracing Framework is an independent project for Rich instrumenting, analyzing, and visualizing any applications web apps. You can install the WTF plugin for Chrome and FireFox.
AngularDart lifecycle has been pre-instrumented using scopes and ranges. Both scopes and ranges show as a duration with a given start and end. Scopes are strictly nested (think stack traces, method calling each other), whereas ranges are not strictly nested (think asynchronous operations such as http.)
AngularDart auto detects the presence of WTF and enables the instrumentation. This works in Dartium, Dart2js, developer and minified mode. If WTF is not present then the Scopes are map to Dart Observatory UserTags which allows them to be visualized in Dart Observatory.