From a214ab51c698d20fe1512e42143a458bfe7ef7c9 Mon Sep 17 00:00:00 2001 From: Philipp Otto Date: Wed, 3 May 2023 10:29:56 +0200 Subject: [PATCH] add timing code --- frontend/javascripts/oxalis/model/sagas/isosurface_saga.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/javascripts/oxalis/model/sagas/isosurface_saga.ts b/frontend/javascripts/oxalis/model/sagas/isosurface_saga.ts index 681e4519df..9cab2226b3 100644 --- a/frontend/javascripts/oxalis/model/sagas/isosurface_saga.ts +++ b/frontend/javascripts/oxalis/model/sagas/isosurface_saga.ts @@ -663,6 +663,7 @@ function* loadPrecomputedMeshForSegmentId( return; } + console.time("_getLoadChunksTasks"); const loadChunksTasks = _getLoadChunksTasks( dataset, layerName, @@ -681,6 +682,7 @@ function* loadPrecomputedMeshForSegmentId( console.error(exception); Toast.warning(`Some mesh chunks could not be loaded for segment ${id}.`); } + console.timeEnd("_getLoadChunksTasks"); yield* put(finishedLoadingIsosurfaceAction(layerName, id)); }