Instrumentation Class — tailwindcss Architecture
Architecture documentation for the Instrumentation class in instrumentation.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 64a99f5c_2d23_77a2_ec09_70c5f3a753fc["Instrumentation"] afa6fc55_69fa_18e5_688a_b47fdb1a1c3e["instrumentation.ts"] 64a99f5c_2d23_77a2_ec09_70c5f3a753fc -->|defined in| afa6fc55_69fa_18e5_688a_b47fdb1a1c3e cf422f78_6ab4_fb1c_ff00_0ad0b93b5386["start()"] 64a99f5c_2d23_77a2_ec09_70c5f3a753fc -->|method| cf422f78_6ab4_fb1c_ff00_0ad0b93b5386 ca962c6e_e07f_61c5_168b_1f3b845c1371["end()"] 64a99f5c_2d23_77a2_ec09_70c5f3a753fc -->|method| ca962c6e_e07f_61c5_168b_1f3b845c1371 00cafdcd_6eb1_fc05_ce14_3a14a050c1f9["hit()"] 64a99f5c_2d23_77a2_ec09_70c5f3a753fc -->|method| 00cafdcd_6eb1_fc05_ce14_3a14a050c1f9 6d99f170_edc6_c0b4_680b_98d262d63d33["error()"] 64a99f5c_2d23_77a2_ec09_70c5f3a753fc -->|method| 6d99f170_edc6_c0b4_680b_98d262d63d33
Relationship Graph
Source Code
packages/@tailwindcss-browser/src/instrumentation.ts lines 1–29
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
}
}
Domain
Source
Frequently Asked Questions
What is the Instrumentation class?
Instrumentation is a class in the tailwindcss codebase, defined in packages/@tailwindcss-browser/src/instrumentation.ts.
Where is Instrumentation defined?
Instrumentation is defined in packages/@tailwindcss-browser/src/instrumentation.ts at line 1.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free