From 54062fa8ac9ef46c7fd69beae67487c5a4ff03ad Mon Sep 17 00:00:00 2001 From: Razvan Nazare Date: Fri, 23 Feb 2024 14:08:52 +0200 Subject: [PATCH] Update render-worker.ts --- .../build/generate-workers/source/render-worker.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/nimble-components/build/generate-workers/source/render-worker.ts b/packages/nimble-components/build/generate-workers/source/render-worker.ts index acc466981a..c16e5f46b0 100644 --- a/packages/nimble-components/build/generate-workers/source/render-worker.ts +++ b/packages/nimble-components/build/generate-workers/source/render-worker.ts @@ -4,7 +4,6 @@ import { HealthStatus, healthStatus } from './health-status'; export class RenderWorker { private worker!: number; private dieMatrix: Uint8Array = Uint8Array.from([]); - private performanceTest: string | undefined; private healthStatus: HealthStatus = healthStatus.unknown; constructor() { @@ -17,11 +16,7 @@ export class RenderWorker { public updateMatrix( data: Iterable ): void { - const start = this.performanceTest !== undefined ? self.performance.now() : undefined; this.dieMatrix = Uint8Array.from(data); - if (this.performanceTest !== undefined) { - self.performance.measure(`${this.performanceTest} - worker:${this.worker} - renderDies`, { start }); - } } public areMethodsCallable(): boolean {