Home / Function/ end() — tailwindcss Function Reference

end() — tailwindcss Function Reference

Architecture documentation for the end() function in instrumentation.ts from the tailwindcss codebase.

Function typescript NodeServer Resolver calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  e3047f9a_7449_3dfb_8bbb_cf79ddc89fc1["end()"]
  8a5a53c8_b056_fb86_4bf2_308f1ad171e8["Instrumentation"]
  e3047f9a_7449_3dfb_8bbb_cf79ddc89fc1 -->|defined in| 8a5a53c8_b056_fb86_4bf2_308f1ad171e8
  6964633c_136d_e731_7357_c395276476b3["report()"]
  6964633c_136d_e731_7357_c395276476b3 -->|calls| e3047f9a_7449_3dfb_8bbb_cf79ddc89fc1
  2820372c_b982_9e06_fc23_f8f4ac308d00["get()"]
  e3047f9a_7449_3dfb_8bbb_cf79ddc89fc1 -->|calls| 2820372c_b982_9e06_fc23_f8f4ac308d00
  style e3047f9a_7449_3dfb_8bbb_cf79ddc89fc1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-node/src/instrumentation.ts lines 35–49

  end(label: string) {
    let end = process.hrtime.bigint()

    if (this.#timerStack[this.#timerStack.length - 1].label !== label) {
      throw new Error(
        `Mismatched timer label: \`${label}\`, expected \`${
          this.#timerStack[this.#timerStack.length - 1].label
        }\``,
      )
    }

    let parent = this.#timerStack.pop()!
    let elapsed = end - parent.value
    this.#timers.get(parent.id).value += elapsed
  }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does end() do?
end() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-node/src/instrumentation.ts.
Where is end() defined?
end() is defined in packages/@tailwindcss-node/src/instrumentation.ts at line 35.
What does end() call?
end() calls 1 function(s): get.
What calls end()?
end() is called by 1 function(s): report.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free