Akumina Developer Documentation

Akumina Developer Documentation

  • API
  • Docs
  • Blog

PerfLogger

@types/akumina-core - v5.0.0 › Globals › Akumina › Digispace › PerfLogger

Hierarchy

  • PerfLogger

Index

Methods

  • AddLoaderStartMark
  • AddLoaderStopMark
  • AddMark
  • CompareMarks
  • GetColor
  • GetLoaderMarks
  • GetMark
  • GetMarks

Methods

Static AddLoaderStartMark

▸ AddLoaderStartMark(mark: string, type: string): void

Defined in index.d.ts:526

Add LoaderMark and mark it start

Parameters:

NameTypeDescription
markstringString Name of mark to be added as Start
typestringString

Returns: void


Static AddLoaderStopMark

▸ AddLoaderStopMark(mark: string): void

Defined in index.d.ts:531

Mark Stop of a LoaderMark

Parameters:

NameTypeDescription
markstringString Name of mark to be marked as Stop

Returns: void


Static AddMark

▸ AddMark(mark: string): void

Defined in index.d.ts:536

To add a new mark

Parameters:

NameTypeDescription
markstringString name of mark

Returns: void


Static CompareMarks

▸ CompareMarks(mark1: string, mark2: string): any

Defined in index.d.ts:559

Measure Performance between two marks

Parameters:

NameTypeDescription
mark1stringName of mark to compare
mark2stringName of mark to compare

Returns: any

PerformanceMeasure Object


Static GetColor

▸ GetColor(time: number, type: string): string

Defined in index.d.ts:566

Gets color from time

Parameters:

NameTypeDescription
timenumbertime in ms
typestringshort,medium,long

Returns: string

yellow green or red


Static GetLoaderMarks

▸ GetLoaderMarks(): any[]

Defined in index.d.ts:552

Get list of all Loader Marks

Returns: any[]

Array of Loader marks object


Static GetMark

▸ GetMark(mark: string): any

Defined in index.d.ts:542

Get a mark object by mark name

Parameters:

NameTypeDescription
markstringstring name of mark

Returns: any

object of mark {name: "string", startTime: decimal}


Static GetMarks

▸ GetMarks(): any[]

Defined in index.d.ts:547

Get List of marks added

Returns: any[]

Array of mark objects [{name: "string", startTime: decimal}]

  • Hierarchy
  • Index
    • Methods
  • Methods
    • Static AddLoaderStartMark
    • Static AddLoaderStopMark
    • Static AddMark
    • Static CompareMarks
    • Static GetColor
    • Static GetLoaderMarks
    • Static GetMark
    • Static GetMarks
Akumina Developer Documentation
Docs
Akumina Framework 5.0Akumina Widget BuilderAkumina Yeoman GeneratorSite Deployer
Community
Akumina Community Site
More
GitHubStar
Copyright © 2024 Akumina