dart-sdk/pkg/dart2js_runtime_metrics/README.md
Stephen Adams 23b50dfa7d [dart2js] Add dart:_dart2js_runtime_metrics library and package
The internal dart:_dart2js_runtime_metrics library is accessed via
package:dart2js_runtime_metrics.

There is currently one API: startupMetrics.

On non-dart2js configurations the API is stubbed for ease-of-use.

Change-Id: I80c56a83fd166ec19c3846fb6937cf0440ed2c6b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208563
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2021-08-03 18:25:00 +00:00

692 B

☠☠ Warning: This package is experimental and may be removed in a future version of Dart. ☠☠

dart2js can generate extra code to measure certain activities. This library provides access to the measurements at runtime.

An application might make timings and other measurements and report them back to a server in order to collect information on how the application is working in production. The APIs in this library provide access to measurements that require help from dart2js. For example, startupMetrics accesses measurements of activities that happen as the program is loaded, before main().

The APIs are stubbed so that dummy values are returned on the VM and dartdevc.