modus
Menu
On this page

The entry output_measure_writer

The writer of the measures 1, 2 and 4 of the record outputs . The test module output_measure starts it with a wiring list whose rows wire its record output samples to each of its readers, so each ring exists before its first instruction and each reader joins at 0.

It writes, in this order, with a wait for room in each write:

  1. 1. WAKE_SAMPLES records one at a time, each after a pause that lets each reader wait again: the reader measures the time from the write to its read (measure 2). The pause paces the writes; nothing reads a time to decide.
  2. 2. BURST_SAMPLES records back to back: the reader counts its wakes (measure 2).
  3. 3. TIMED_SAMPLES records, each write timed in cycles (measures 1 and 4, with the count of the readers of this run).

Then, with one reader only, LOG_FACT_SAMPLES log facts of the same record, each timed (measure 1), and as many lines of text, each timed. In the run whose wiring list also wires the record output log of this process, the same facts and lines go to that ring too: the two runs give measure 9, the cost of a log call with and without the wiring. Then the end record. Each measure is printed, never asserted.

Start: by output_measure only. What a reader sees: no window; one line for each measure, or a line "output_measure_writer: WRONG: ...". It stops itself with the outcome Done, or Failed after a WRONG line.

See: Record outputs and record inputs of a module: typed streams of records between processes: The measures that decide it in the repository

output_measure_writer module with an entry

Hash
01984d421fefc5f0d9a7518ed1f9e25dac7954db226b918fb0d5cf4fb660894f
Size
57344 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

The writer of the measures 1, 2 and 4 of the record outputs

FactValue
KindModules with an entry
Sourcesrc/modules/tests/output_measure_writer
Boot imageyes: in the boot image, 57344 bytes in this build
Build settingsnone: the defaults of the source
Importsnone
Imported bynone

Neighbours

It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.

Exports

ExportWhat it does
entry()

entry

entry()
Form
The entry of the module: one parameter, an address, fixed by the contract.
Source
src/modules/tests/output_measure_writer/main.odin:114

Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).

What the root service gives it

WhatValueAs the root service says
GrantsnoneIts writer and its readers: their ends come in their wiring rings before their first instruction, and they need no grant.
Other terms of its start grant setnone
Budget that it asks for
  • the least budget
No MODULE_BUDGET in its source: it asks for the least budget.

The start grant set is read from start_grant_sets in src/modules/system/root/start_grant_sets.odin. The stated budget is read from the constant MODULE_BUDGET of the source of the module; the build adds the counted parts and writes the sum in the module (tools/modustool/build/budget_count.odin); the root service accepts it up to the largest budget of a process, and adds the limits of processor time and of log records (src/modules/system/root/budgets.odin).