cellmap_flow.inference.timing
Where a served chunk’s time goes.
The server starts a record when a chunk request arrives (start), the
stages it passes through add their time to it (stage, add), and the
server logs it when the chunk is sent (finish). The record is per thread,
and the server answers each request on its own thread, so concurrent chunks
keep separate records. Outside a request (blockwise, scripts, tests) no
record is started, and stage and add do nothing.
Functions
|
Begin a record for the chunk this thread is serving. |
|
Add |
|
Time the block as stage |
|
This thread's record, |
Module Contents
- cellmap_flow.inference.timing.start()
Begin a record for the chunk this thread is serving.
- cellmap_flow.inference.timing.add(name, seconds)
Add
secondsto stagenameof this thread’s record, if one is started.
- cellmap_flow.inference.timing.stage(name)
Time the block as stage
nameof this thread’s record.
- cellmap_flow.inference.timing.finish()
This thread’s record,
{stage: seconds}in the order first timed; ends it.