Home / File/ instrumentation.ts — tailwindcss Source File

instrumentation.ts — tailwindcss Source File

Architecture documentation for instrumentation.ts, a typescript file in the tailwindcss codebase. 0 imports, 1 dependents.

File typescript Oxide PreProcessors 1 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  9e9a7c7d_f843_0850_e73b_8a417af4e602["instrumentation.ts"]
  23d03804_a9a2_99ea_5362_f402708f8ba3["index.ts"]
  23d03804_a9a2_99ea_5362_f402708f8ba3 --> 9e9a7c7d_f843_0850_e73b_8a417af4e602
  style 9e9a7c7d_f843_0850_e73b_8a417af4e602 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

Subdomains

Classes

Frequently Asked Questions

What does instrumentation.ts do?
instrumentation.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the Oxide domain, PreProcessors subdomain.
What files import instrumentation.ts?
instrumentation.ts is imported by 1 file(s): index.ts.
Where is instrumentation.ts in the architecture?
instrumentation.ts is located at packages/@tailwindcss-browser/src/instrumentation.ts (domain: Oxide, subdomain: PreProcessors, directory: packages/@tailwindcss-browser/src).

Analyze Your Own Codebase

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

Try Supermodel Free