mergeReports
On this page

mergeReports()

Function in Runtime

The report of several plans as one, as a plan of several groups reports its own: the dispatches and the submissions summed, the groups in the order given, and the tier the most capable report ran on.

import { mergeReports } from 'typeshade'
import { mergeReports } from 'typeshade/runtime'

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

Syntax

function mergeReports(reports: readonly FuseReport[]): FuseReport

Parameters

reports readonly FuseReport[]

Return value

FuseReport

Description

With no report it is the report of a plan that did nothing: 'cpu', 0, 0 and no group. Each group is the one its report held, not a copy, so each keeps the tier it ran on and its why (change 0118), while the merged tier stays the best of the reports’ tiers. A merged report has no chunk row, since it is no one chunk (change 0074): device.chunkRates holds what the device measured of each key. Scratch counters are summed only when every input records them; an omitted input keeps the merged counters unknown. No inputs gives four known zeros (change 0128).

Exported from typeshade/runtime and from the root (change 0071, Amendment 2).

Source

src/core/fuse-report.ts, line 117, at commit af54ddad5

Edit this page Report a problem