UNPKG

@contrast/route-metrics

Version:

`route-metrics` allows server performance, exclusive of network time, to be compared on a route-by-route basis. It was created to compare server performance with and without `@contrast/agent` being loaded and active.

24 lines (18 loc) 479 B
'use strict'; const BaseReporter = require('./base-reporter.cjs'); class Reporter extends BaseReporter { constructor(stream, overallInfo, options) { super(stream, overallInfo, options); } reportOverall() { // do nothing } async report() { const summaries = JSON.stringify(this.runSummaries, null, 2); this.stream.write(summaries); return new Promise(resolve => { this.stream.write('\n', resolve); }); } } module.exports = Reporter;