new (require("pete/lib/RunState"))(maxHDRValueopt)
- Source:
Example
const RunState = require('pete/lib/RunState');
var state = new RunState();
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
maxHDRValue |
number |
<optional> |
Number.MAX_SAFE_INTEGER
|
Must be higher than 1 |
Members
current :bigint
- Source:
- Default Value:
- 0
Type:
- bigint
error :Error|null
- Source:
- Default Value:
- null
Type:
- Error | null
finished :bigint
- Source:
- Default Value:
- 0
Type:
- bigint
hdr :external:RecordableHistogram
- Source:
Type:
mode :string
- Description:
For example: "regular", "skip" or "todo".
- Source:
- Default Value:
- ''
For example: "regular", "skip" or "todo".
Type:
- string
runType :string
- Description:
File path of run type used for testing target function.
- Source:
- Default Value:
- ''
File path of run type used for testing target function.
Type:
- string
samplesCount :number
- Source:
- Default Value:
- 0
Type:
- number
started :bigint
- Source:
- Default Value:
- 0
Type:
- bigint
totalCPUTime :bigint
- Source:
- Default Value:
- 0
Type:
- bigint
totalRealTime :bigint
- Source:
- Default Value:
- 0
Type:
- bigint
Methods
reset()
- Description:
Reset values to initial state.
- Source: