3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-11 20:55:01 +00:00
zeppelin/backend/src/profiler.ts

12 lines
254 B
TypeScript

import type { Knub } from "knub";
type Profiler = Knub["profiler"];
let profiler: Profiler | null = null;
export function getProfiler(): Profiler|null {
return profiler;
}
export function setProfiler(_profiler: Profiler) {
profiler = _profiler;
}