report() — tailwindcss Function Reference
Architecture documentation for the report() function in instrumentation.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 6964633c_136d_e731_7357_c395276476b3["report()"] 8a5a53c8_b056_fb86_4bf2_308f1ad171e8["Instrumentation"] 6964633c_136d_e731_7357_c395276476b3 -->|defined in| 8a5a53c8_b056_fb86_4bf2_308f1ad171e8 b8e2c265_5a16_1719_f5fc_7d3331c4d64b["Symbol()"] b8e2c265_5a16_1719_f5fc_7d3331c4d64b -->|calls| 6964633c_136d_e731_7357_c395276476b3 e3047f9a_7449_3dfb_8bbb_cf79ddc89fc1["end()"] 6964633c_136d_e731_7357_c395276476b3 -->|calls| e3047f9a_7449_3dfb_8bbb_cf79ddc89fc1 da9e6e55_4880_00a0_8298_0004e29a718c["reset()"] 6964633c_136d_e731_7357_c395276476b3 -->|calls| da9e6e55_4880_00a0_8298_0004e29a718c 1330322a_5ec4_e64a_b38e_5c38b6792e7e["dim()"] 6964633c_136d_e731_7357_c395276476b3 -->|calls| 1330322a_5ec4_e64a_b38e_5c38b6792e7e 81c9ee6e_b44c_d0df_34e0_c26e57df3e1b["blue()"] 6964633c_136d_e731_7357_c395276476b3 -->|calls| 81c9ee6e_b44c_d0df_34e0_c26e57df3e1b 2820372c_b982_9e06_fc23_f8f4ac308d00["get()"] 6964633c_136d_e731_7357_c395276476b3 -->|calls| 2820372c_b982_9e06_fc23_f8f4ac308d00 style 6964633c_136d_e731_7357_c395276476b3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-node/src/instrumentation.ts lines 57–100
report(flush = this.defaultFlush) {
let output: string[] = []
let hasHits = false
// Auto end any pending timers
for (let i = this.#timerStack.length - 1; i >= 0; i--) {
this.end(this.#timerStack[i].label)
}
for (let [label, { value: count }] of this.#hits.entries()) {
if (this.#timers.has(label)) continue
if (output.length === 0) {
hasHits = true
output.push('Hits:')
}
let depth = label.split('//').length
output.push(`${' '.repeat(depth)}${label} ${dim(blue(`× ${count}`))}`)
}
if (this.#timers.size > 0 && hasHits) {
output.push('\nTimers:')
}
let max = -Infinity
let computed = new Map<string, string>()
for (let [label, { value }] of this.#timers) {
let x = `${(Number(value) / 1e6).toFixed(2)}ms`
computed.set(label, x)
max = Math.max(max, x.length)
}
for (let label of this.#timers.keys()) {
let depth = label.split('//').length
output.push(
`${dim(`[${computed.get(label)!.padStart(max, ' ')}]`)}${' '.repeat(depth - 1)}${depth === 1 ? ' ' : dim(' ↳ ')}${label.split('//').pop()} ${
this.#hits.get(label).value === 1 ? '' : dim(blue(`× ${this.#hits.get(label).value}`))
}`.trimEnd(),
)
}
flush(`\n${output.join('\n')}\n`)
this.reset()
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does report() do?
report() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-node/src/instrumentation.ts.
Where is report() defined?
report() is defined in packages/@tailwindcss-node/src/instrumentation.ts at line 57.
What does report() call?
report() calls 5 function(s): blue, dim, end, get, reset.
What calls report()?
report() is called by 1 function(s): Symbol.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free