Hierarchy

  • Profiler

Constructors

  • Parameters

    • getData: (() => {
          map?: ProfileMap;
      })
        • (): {
              map?: ProfileMap;
          }
        • Returns {
              map?: ProfileMap;
          }

          • Optional map?: ProfileMap
    • dummy: boolean = false

    Returns Profiler

Properties

currentKey: string = "(tick)"
data: {
    map: ProfileMap;
    on?: 1;
    start?: number;
}

Type declaration

  • map: ProfileMap
  • Optional on?: 1
  • Optional start?: number
dummy: boolean = false
getData: (() => {
    map?: ProfileMap;
})

Type declaration

    • (): {
          map?: ProfileMap;
      }
    • Returns {
          map?: ProfileMap;
      }

      • Optional map?: ProfileMap
marker: symbol = ...

Methods

  • Parameters

    • key: string
    • map: ProfileMap = ...

    Returns [time: number, calls: number, subs: ProfileMap]

  • Parameters

    • Optional maxStats: number

    Returns string

  • Parameters

    • Optional maxStats: number

    Returns void

  • Manually add profiling timings

    Parameters

    • key: string

      profiled function name

    • time: number

      cpu usage

    • parentKey: string = ...

      override parent function name

    Returns void

  • Type Parameters

    • F extends ((...args) => unknown)

    Parameters

    • fn: F
    • Optional name: string

    Returns F

  • Parameters

    • object: object
    • name: string

    Returns void

  • Parameters

    • loop: (() => void)
        • (): void
        • Returns void

    Returns (() => void)

      • (): void
      • Returns void

Generated using TypeDoc