Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Profiler

Hierarchy

  • Profiler

Index

Constructors

Protected constructor

  • Returns Profiler

Properties

Static Readonly heapStats

heapStats: IHeapStats

Static Readonly profilesRunning

profilesRunning: number

Static samplingInterval

samplingInterval: number

Sampling interval in microseconds. Defaults to 100.

Methods

Static getMemoryProfile

  • getMemoryProfile(): void
  • Returns void

Static startProfiling

  • startProfiling(profileName?: string): void
  • Starts a new profile with the specified name.

    remarks

    This can throw an error if starting the profile fails.

    Parameters

    • Optional profileName: string

      Name to be used in stopProfiling. Defaults to empty string.

    Returns void

Static stopProfiling

  • stopProfiling(profileName?: string): IProfile
  • Stops the profile with the specified name.

    Parameters

    • Optional profileName: string

      Name of the profile specified in startProfiling. Defaults to empty string.

    Returns IProfile

Static takeHeapSnapshot

  • takeHeapSnapshot(): Promise<string>