Datalayer VS Code Extension - v0.0.4
    Preparing search index...

    Manual performance timer for complex operations.

    Index

    Constructors

    • Parameters

      • operationName: string
      • logger: {
            debug: (msg: string, ctx?: Record<string, unknown>) => void;
            error: (msg: string, err?: Error, ctx?: Record<string, unknown>) => void;
            info: (msg: string, ctx?: Record<string, unknown>) => void;
            trace: (msg: string, ctx?: Record<string, unknown>) => void;
            warn: (msg: string, ctx?: Record<string, unknown>) => void;
        }
      • Optionalcontext: Record<string, unknown>

      Returns PerformanceTimer

    Properties

    checkpoints: { memory: MemorySnapshot; name: string; time: number }[] = []
    context?: Record<string, unknown>
    logger: {
        debug: (msg: string, ctx?: Record<string, unknown>) => void;
        error: (msg: string, err?: Error, ctx?: Record<string, unknown>) => void;
        info: (msg: string, ctx?: Record<string, unknown>) => void;
        trace: (msg: string, ctx?: Record<string, unknown>) => void;
        warn: (msg: string, ctx?: Record<string, unknown>) => void;
    }
    operationName: string
    startMemory?: MemorySnapshot
    startTime?: number

    Methods

    • End the timer and log final results.

      Parameters

      • status: "success" | "failure" | "cancelled" = "success"

      Returns void