Options
All
  • Public
  • Public/Protected
  • All
Menu
experimental

An util used for adding performance checkpoints which can be then used for analyzing the chart performance. The checkpoints are created via the Performance API

remarks

By default it is disabled, to make use of the utils set PerformanceDebugHelper.enableDebug. Some checkpoints are set implicitly. Custom checkpoints could be set using PerformanceDebugHelper.mark. To output the results use PerformanceDebugHelper.outputLogs.

Hierarchy

  • PerformanceDebugHelper

Index

Properties

separator

separator: string = "_"

Static debugLevel

debugLevel: EPerformanceDebugLevel = EPerformanceDebugLevel.Info

Static enableDebug

enableDebug: boolean = false

Static instance

instance: PerformanceDebugHelper = new PerformanceDebugHelper()

Static measuredMarks

measuredMarks: string[] = []

Methods

addMark

clearMarks

  • clearMarks(name?: string): void
  • Removes a specific mark by name or all marks if no name provided

    remarks

    the default implementation removes marks the browser's performance timeline as well.

    Parameters

    • Optional name: string

    Returns void

Protected createMark

createMeasure

  • createMeasure(type: EPerformanceMarkType | string, name?: string, contextId?: string): PerformanceMeasure
  • Creates a performance measure based on the given mark type

    Parameters

    Returns PerformanceMeasure

createMeasureFromEndMark

  • createMeasureFromEndMark(mark: PerformanceMark, name?: string): PerformanceMeasure
  • Parameters

    Returns PerformanceMeasure

getMarks

  • Retrieves the marks.

    remarks

    the default implementation will return all PerformanceMark instances the browser's performance timeline (e.g. created via performance.mark)

    Returns TSciChartPerformanceMark<TPerformanceDetail>[]

getMeasures

  • getMeasures(): PerformanceEntryList
  • Returns PerformanceEntryList

Static clearMarks

  • clearMarks(name?: string): void
  • Parameters

    • Optional name: string

    Returns void

Static getMarks

Static getMeasures

  • getMeasures(): PerformanceEntryList
  • Returns PerformanceEntryList

Static mark

Static measure

  • measure(type: EPerformanceMarkType | string, name?: string, contextId?: string): PerformanceMeasure
  • Parameters

    Returns PerformanceMeasure

Static outputLogs

  • outputLogs(): void
  • Returns void

Static toJSON

Generated using TypeDoc