Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "profiling"

Index

Type aliases

InstrumentationMode

InstrumentationMode: "counters" | "timeline" | "lifecycle"

Functions

disable

  • disable(): void
  • Returns void

dumpProfiles

  • dumpProfiles(): void
  • Returns void

enable

  • Parameters

    Returns void

isRunning

  • isRunning(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

    true is the timer is currently running.

level

  • Returns Level

log

  • log(message: string): void
  • Parameters

    • message: string

    Returns void

profile

  • profile(name?: string): MethodDecorator
  • profile<F>(fn: F): F
  • profile<F>(name: string, fn: F): F
  • profile<T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void
  • profile(): any
  • Parameters

    • Optional name: string

    Returns MethodDecorator

  • Type parameters

    • F: Function

    Parameters

    • fn: F

    Returns F

  • Type parameters

    • F: Function

    Parameters

    • name: string
    • fn: F

    Returns F

  • Type parameters

    • T

    Parameters

    • target: Object
    • propertyKey: string | symbol
    • descriptor: TypedPropertyDescriptor<T>

    Returns TypedPropertyDescriptor<T> | void

  • Returns any

resetProfiles

  • resetProfiles(): void
  • Returns void

start

  • start(name: string): void
  • Parameters

    • name: string

    Returns void

startCPUProfile

  • startCPUProfile(name: string): void
  • Parameters

    • name: string

    Returns void

stop

  • Parameters

    • name: string

    Returns TimerInfo

    TimerInfo for the paused timer.

stopCPUProfile

  • stopCPUProfile(name: string): void
  • Parameters

    • name: string

    Returns void

time

  • time(): number
  • Returns number

timer

  • Parameters

    • name: string

    Returns TimerInfo

trace

  • trace(message: string, start: number, end: number): void
  • Parameters

    • message: string
    • start: number
    • end: number

    Returns void

uptime

  • uptime(): number
  • Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method