Jordan Pittman dcf116bb30
Add @tailwindcss/browser package (#15558)
Co-authored-by: Philipp Spiess <hello@philippspiess.com>
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2025-01-07 09:57:34 -05:00

30 lines
516 B
TypeScript

export class Instrumentation {
start(label: string) {
performance.mark(`${label} (start)`)
}
end(label: string, detail?: any) {
performance.mark(`${label} (end)`)
performance.measure(label, {
start: `${label} (start)`,
end: `${label} (end)`,
detail,
})
}
hit(label: string, detail?: any) {
performance.mark(label, {
detail,
})
}
error(error: any) {
performance.mark(`(error)`, {
detail: { error: `${error}` },
})
throw error
}
}