MiniQuake

src/miniquake/optimization_baseline.ml

Package
miniquake.optimization_baseline
Reachable
Yes

Imports

Declarations

beginFrame

function beginFrame()

Initialize state for begin frame.

View source

boolText

function boolText(value)

Implements the `boolText` operation for `miniquake.optimization_baseline` (bool text).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `boolText`.

View source

checkpoint

function checkpoint(stage)

Checks point for `miniquake.optimization_baseline`.

ParameterTypeDefaultDescription
stagedynamic—The stage input consumed by `checkpoint`.

View source

classifyHandles

function classifyHandles(handles, nonHandleStable)

Implements the `classifyHandles` operation for `miniquake.optimization_baseline` (classify handles).

ParameterTypeDefaultDescription
handlesdynamic—The handles input consumed by `classifyHandles`.
nonHandleStabledynamic—The non handle stable input consumed by `classifyHandles`.

View source

completeFrame

function completeFrame()

Handle frame and update the associated state.

View source

configure

function configure(frameCapacity)

Implements the `configure` operation for `miniquake.optimization_baseline` (configure).

ParameterTypeDefaultDescription
frameCapacitydynamic—The frame capacity input consumed by `configure`.

View source

disable

function disable()

Implements the `disable` operation for `miniquake.optimization_baseline` (disable).

View source

enabled

function enabled()

Report whether enabled holds for the active state.

View source

filteredFrame

function filteredFrame()

Implements the `filteredFrame` operation for `miniquake.optimization_baseline` (filtered frame).

View source

handleSequenceText

function handleSequenceText(values)

Handle sequence text and update the associated state.

ParameterTypeDefaultDescription
valuesdynamic—The values input consumed by `handleSequenceText`.

View source

normalizeStage

function normalizeStage(stage)

Convert stage into its canonical representation.

ParameterTypeDefaultDescription
stagedynamic—The stage input consumed by `normalizeStage`.

View source

OTHER_STAGE_INDEX

const OTHER_STAGE_INDEX = 19

Defines the other stage index value used by `miniquake.optimization_baseline`.

View source

percentileFromSorted

function percentileFromSorted(values, numerator, denominator)

Implements the `percentileFromSorted` operation for `miniquake.optimization_baseline` (percentile from sorted).

ParameterTypeDefaultDescription
valuesdynamic—The values input consumed by `percentileFromSorted`.
numeratordynamic—The numerator input consumed by `percentileFromSorted`.
denominatordynamic—The denominator input consumed by `percentileFromSorted`.

View source

printSlowFrames

function printSlowFrames(minimumMilliseconds)

Print the stage breakdown for frames at or above the requested duration.

ParameterTypeDefaultDescription
minimumMillisecondsdynamic—The minimum milliseconds input consumed by `printSlowFrames`.

View source

printSummary

function printSummary(mode, mapName)

Format and emit summary.

ParameterTypeDefaultDescription
modedynamic—The mode input consumed by `printSummary`.
mapNamedynamic—Name of the map to load or inspect.

View source

profileCapacity

profileCapacity

Tracks the module-level profile capacity state owned by `miniquake.optimization_baseline`.

View source

profileDurations

profileDurations

Tracks the module-level profile durations state owned by `miniquake.optimization_baseline`.

View source

profileEnabled

profileEnabled

Tracks the module-level profile enabled state owned by `miniquake.optimization_baseline`.

View source

profileFrameActive

profileFrameActive

Tracks the module-level profile frame active state owned by `miniquake.optimization_baseline`.

View source

profileFrameCount

profileFrameCount

Tracks the module-level profile frame count state owned by `miniquake.optimization_baseline`.

View source

profileFrameStart

profileFrameStart

Tracks the module-level profile frame start state owned by `miniquake.optimization_baseline`.

View source

profileLastTick

profileLastTick

Tracks the module-level profile last tick state owned by `miniquake.optimization_baseline`.

View source

profileStageFrames

profileStageFrames

Tracks the module-level profile stage frames state owned by `miniquake.optimization_baseline`.

View source

profileStageHits

profileStageHits

Tracks the module-level profile stage hits state owned by `miniquake.optimization_baseline`.

View source

profileStageTotals

profileStageTotals

Tracks the module-level profile stage totals state owned by `miniquake.optimization_baseline`.

View source

recordedFrames

function recordedFrames()

Implements the `recordedFrames` operation for `miniquake.optimization_baseline` (recorded frames).

View source

resourceJson

function resourceJson(values)

Implements the `resourceJson` operation for `miniquake.optimization_baseline` (resource json).

ParameterTypeDefaultDescription
valuesdynamic—The values input consumed by `resourceJson`.

View source

sortedDurations

function sortedDurations()

Implements the `sortedDurations` operation for `miniquake.optimization_baseline` (sorted durations).

View source

STAGE_COUNT

const STAGE_COUNT = 46

Defines the stage count value used by `miniquake.optimization_baseline`.

View source

stageIndex

function stageIndex(stage)

Return stage index derived from the active module state.

ParameterTypeDefaultDescription
stagedynamic—The stage input consumed by `stageIndex`.

View source

stageLookupKeys

stageLookupKeys

Tracks the module-level stage lookup keys state owned by `miniquake.optimization_baseline`.

View source

stageLookupValues

stageLookupValues

Tracks the module-level stage lookup values state owned by `miniquake.optimization_baseline`.

View source

stageNames

stageNames

Tracks the module-level stage names state owned by `miniquake.optimization_baseline`.

View source

stageTotalsJson

function stageTotalsJson()

Implements the `stageTotalsJson` operation for `miniquake.optimization_baseline` (stage totals json).

View source

summary

function summary()

Return summary derived from the active module state.

View source

writeReports

function writeReports(prefix, mode, mapName, beforeResources, afterResources)

Encode and write reports.

ParameterTypeDefaultDescription
prefixdynamic—The prefix input consumed by `writeReports`.
modedynamic—The mode input consumed by `writeReports`.
mapNamedynamic—Name of the map to load or inspect.
beforeResourcesdynamic—The before resources input consumed by `writeReports`.
afterResourcesdynamic—The after resources input consumed by `writeReports`.

View source