Merge branch 'perf-clear' into 'main'

SqliteWorker: clear performance marks & measures

See merge request soapbox-pub/ditto!141
This commit is contained in:
Alex Gleason 2024-04-08 13:39:37 +00:00
commit f17e5d57f9
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ export const SqliteWorker = {
const { duration } = perf.measure('end', 'start');
debug(`${sql} \x1b[90m(${(duration / 1000).toFixed(2)}s)\x1b[0m`);
perf.clearMarks();
perf.clearMeasures();
return result;
},
destroy() {