Files
mastodon/app/javascript/flavours/glitch/performance.js
Claire f49940db85 Merge commit 'c4f47adb49663f24ee80d9174ab24431a8c165c0' into glitch-soc/merge-upstream
Too many conflicts to list, because of webpack → vite migration.
2025-05-25 14:36:51 +02:00

20 lines
403 B
JavaScript

//
// Tools for performance debugging, only enabled in development mode.
// Open up Chrome Dev Tools, then Timeline, then User Timing to see output.
import * as marky from 'marky';
import { isDevelopment } from './utils/environment';
export function start(name) {
if (isDevelopment()) {
marky.mark(name);
}
}
export function stop(name) {
if (isDevelopment()) {
marky.stop(name);
}
}