PerfLogger
@types/akumina-core - v5.0.0 › Globals › Akumina › Digispace › PerfLogger
Hierarchy
- PerfLogger
Index
Methods
Methods
Static AddLoaderStartMark
▸ AddLoaderStartMark(mark: string, type: string): void
Defined in index.d.ts:526
Add LoaderMark and mark it start
Parameters:
| Name | Type | Description |
|---|---|---|
mark | string | String Name of mark to be added as Start |
type | string | String |
Returns: void
Static AddLoaderStopMark
▸ AddLoaderStopMark(mark: string): void
Defined in index.d.ts:531
Mark Stop of a LoaderMark
Parameters:
| Name | Type | Description |
|---|---|---|
mark | string | String 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:
| Name | Type | Description |
|---|---|---|
mark | string | String 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:
| Name | Type | Description |
|---|---|---|
mark1 | string | Name of mark to compare |
mark2 | string | Name 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:
| Name | Type | Description |
|---|---|---|
time | number | time in ms |
type | string | short,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:
| Name | Type | Description |
|---|---|---|
mark | string | string 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}]
