From: Jérôme Benoit Date: Sun, 15 Aug 2021 08:23:21 +0000 (+0200) Subject: Clear performance mark after usage. X-Git-Tag: v1.0.35~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=333eb1003a19e24f6098da116f5cd716e37facb3;p=e-mobility-charging-stations-simulator.git Clear performance mark after usage. Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/PerformanceStatistics.ts b/src/utils/PerformanceStatistics.ts index 4ef732f7..6586b06a 100644 --- a/src/utils/PerformanceStatistics.ts +++ b/src/utils/PerformanceStatistics.ts @@ -28,6 +28,7 @@ export default class PerformanceStatistics { public static endMeasure(name: string, beginId: string): void { performance.measure(name, beginId); + performance.clearMarks(beginId); } public addRequestStatistic(command: RequestCommand | IncomingRequestCommand, messageType: MessageType): void {