Skip to main content
Branch: Release Candidate

Profiler

Index

Properties

publicstaticreadonlyheapStats

heapStats: IHeapStats

publicstaticreadonlyprofilesRunning

profilesRunning: number

publicstaticsamplingInterval

samplingInterval: number

Sampling interval in microseconds. Defaults to 100.

Methods

publicstaticgetMemoryProfile

  • getMemoryProfile(): void

publicstaticstartProfiling

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

    Remarks

    This can throw an error if starting the profile fails.

publicstaticstopProfiling

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

publicstatictakeHeapSnapshot

  • takeHeapSnapshot(): Promise<string>