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 NodeBridge Compiler calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  7f1a87a0_3ea8_7057_b711_5c7bdb1e0ce5["end()"]
  f86cf69c_7c70_7a89_a666_593c4245917f["Instrumentation"]
  7f1a87a0_3ea8_7057_b711_5c7bdb1e0ce5 -->|defined in| f86cf69c_7c70_7a89_a666_593c4245917f
  6dc1dd11_64c4_2049_6b20_5094d747fd15["report()"]
  6dc1dd11_64c4_2049_6b20_5094d747fd15 -->|calls| 7f1a87a0_3ea8_7057_b711_5c7bdb1e0ce5
  5bcf4886_1230_a8ff_7302_a26cc5a9a525["get()"]
  7f1a87a0_3ea8_7057_b711_5c7bdb1e0ce5 -->|calls| 5bcf4886_1230_a8ff_7302_a26cc5a9a525
  style 7f1a87a0_3ea8_7057_b711_5c7bdb1e0ce5 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