PerfLogger
definitely-typed › Akumina › Digispace › PerfLogger
Hierarchy
- PerfLogger
Index
Methods
Methods
Static
AddLoaderStartMark
▸ AddLoaderStartMark(mark
: string, type
: string): void
Defined in index.d.ts:480
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:485
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:490
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:513
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:520
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:506
Get list of all Loader Marks
Returns: any[]
Array of Loader marks object
Static
GetMark
▸ GetMark(mark
: string): any
Defined in index.d.ts:496
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:501
Get List of marks added
Returns: any[]
Array of mark objects [{name: "string", startTime: decimal}]