Home / Class/ Instrumentation Class — tailwindcss Architecture

Instrumentation Class — tailwindcss Architecture

Architecture documentation for the Instrumentation class in instrumentation.ts from the tailwindcss codebase.

Entity Profile

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

Analyze Your Own Codebase

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

Try Supermodel Free