The entry output_measure
The asker of the measures 1, 2, 4 and 9 of the record outputs . For each count of readers of READER_COUNTS, it starts that many output_measure_reader, then starts output_measure_writer with a wiring list of one row for each reader, and waits until each one stopped with the outcome Done: each reader read each record in order. The writer prints the time of a write with that count of readers; the run of one reader also prints the time of a log fact, of a line and the wake. A last run has one reader and wires the record output log of the writer to this process, which reads each of its log records: the writer prints the same log calls with the wiring (measure 9).
The largest count is 8, the wirings of one asker at most (output.WIRINGS_OF_AN_ASKER_MOST): the measure of 16 readers needs a second asker.
Start: start("output_measure") in the console, in a measure run. What a reader sees: no window; the lines of the writer and of the reader, then "output_measure: ...: as it must", or a line "output_measure: WRONG: ...". It stops itself with the outcome Done, or Failed after a WRONG line.
output_measure module with an entry
- Hash
f1aed379dda4c37aaebd6a13bd4ef1309815cf0f44326f6aba39fdb4f74e2420- Size
67761 bytes- Exports
0- Imports
0- Imported by
0- License
- MIT
The asker of the measures 1, 2, 4 and 9 of the record outputs
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/tests/output_measure |
| Boot image | yes: in the boot image, 67761 bytes in this build |
| Build settings | none: the defaults of the source |
| Imports | none |
| Imported by | none |
Neighbours
It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.
Exports
| Export | What it does |
|---|---|
entry() |
entry
entry()
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/tests/output_measure/main.odin:274
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
| What | Value | As the root service says |
|---|---|---|
| Grants | The asker of the measures of the record outputs: it starts its readers and its writer with a wiring list, and reads its own grants between two runs. Start, Wire and Grants are commands of the root ring. | |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| 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).
