performance.clearMarks();
performance.clearMeasures();
this.performanceObserver?.disconnect();
performance.clearMarks();
performance.clearMeasures();
this.performanceObserver?.disconnect();
- }, Configuration.getLogStatisticsInterval() * 1000);
+ }, logStatisticsInterval * 1000);
+ logger.info(
+ `${this.logPrefix()} logged every ${Utils.formatDurationSeconds(logStatisticsInterval)}`
+ );
+ } else if (this.displayInterval) {
private median(dataSet: number[]): number {
if (Array.isArray(dataSet) === true && dataSet.length === 1) {
return dataSet[0];
}
const sortedDataSet = dataSet.slice().sort((a, b) => a - b);
const middleIndex = Math.floor(sortedDataSet.length / 2);
private median(dataSet: number[]): number {
if (Array.isArray(dataSet) === true && dataSet.length === 1) {
return dataSet[0];
}
const sortedDataSet = dataSet.slice().sort((a, b) => a - b);
const middleIndex = Math.floor(sortedDataSet.length / 2);
if (Number.isInteger(percentileIndex)) {
return (sortedDataSet[percentileIndex] + sortedDataSet[percentileIndex + 1]) / 2;
}
if (Number.isInteger(percentileIndex)) {
return (sortedDataSet[percentileIndex] + sortedDataSet[percentileIndex + 1]) / 2;
}
const entryName = entry.name;
// Initialize command statistics
if (!this.statistics.statisticsData.has(entryName)) {
const entryName = entry.name;
// Initialize command statistics
if (!this.statistics.statisticsData.has(entryName)) {