onMetrics property

Stream<MetricsEvent> get onMetrics

Emitted when the JavaScript code makes a call to console.timeStamp. For the list of metrics see page.metrics.

Result:

  • title The title passed to console.timeStamp.
  • metrics Object containing the metrics.

Implementation

Stream<MetricsEvent> get onMetrics => devTools.performance.onMetrics.map(
  (e) => MetricsEvent(e.title, Metrics.fromBrowser(e.metrics)),
);