Options
All
  • Public
  • Public/Protected
  • All
Menu

A basic profiling tool that can be used to measure time spent in sections of the engine.

Hierarchy

  • Profiler

Index

Methods

  • begin(sectionName: string): void
  • Parameters

    • sectionName: string

    Returns void

  • beginFrame(): void
  • Returns void

  • end(sectionName?: string): void
  • Parameters

    • Optional sectionName: string

    Returns void

  • endFrame(): void
  • Returns void

  • Return the measures for all the section of the game during the frames captured.

    Returns FrameMeasure

  • getProfilerSectionTexts(sectionName: string, profilerSection: any, outputs: any): void
  • Convert measures for a section into texts. Useful for ingame profiling.

    Parameters

    • sectionName: string

      The name of the section

    • profilerSection: any

      The section measures

    • outputs: any

      The array where to push the results

    Returns void

  • Get stats measured during the frames captured.

    Returns ProfilerStats

Constructors

Generated using TypeDoc