StoreCallMarks

The instants one call to a store passes, in System.nanoTime, a diagnostic of where the call's time goes: an event log's appendAll or a snapshot store's saveAll. The node's caller (the append queue, the snapshot writes) puts one in the call's coroutine context only while something reads its counts, and marks taken (when it makes it), returned and done. A store marks what only it sees, from entered to released, and adds its driver's own command time when its driver reports it; a store that marks nothing leaves them at zero. Nothing is marked without one: a store looks it up once a call and finds none.

Each mark is written by the one coroutine the call runs in at that point, in order; the call's resumptions order them, so the caller reads every mark the store wrote once the call returns.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Properties

Link copied to clipboard

The store's connection acquired: the first, when the call takes several.

Link copied to clipboard

The driver's own time of the call's commands before sent, in nanoseconds (bindCommands of them): what the store sent while building the batch (MongoDB's log: its partitions' counter writes and its lookups).

Link copied to clipboard

The commands the driver reported before sent (bindCommand).

Link copied to clipboard

The driver's own time of the call's commands from sent to read, in nanoseconds: from each command's message sent to its reply, as the driver reports it (commands of them). A command before sent (a lookup or a counter write while the store builds the batch) is counted apart, in bindCommand. Zero where the driver reports none (no listener, or a store whose driver has none).

Link copied to clipboard

The commands the driver reported (command).

Link copied to clipboard
var done: Long

The outcomes handed to their callers, the caller's committer free for its next batch.

Link copied to clipboard

Of acquired to sent (what the store builds of the batch), the nanoseconds it spent encoding the batch's records into what its driver sends (encoded); zero where the store does not tell.

Link copied to clipboard

The store's call entered, on the caller's thread.

Link copied to clipboard

Of acquired to sent, the nanoseconds the store spent in lookups it made while building the batch (a read of the store, lookups of them, lookedUp); zero where the store does not tell or made none.

Link copied to clipboard

The lookups the store made while building the batch (lookup).

Link copied to clipboard

Whether the store marked every instant it sees, so each step between taken and done is known.

Link copied to clipboard

The call on the thread that does the store's blocking work, after the hop to it.

Link copied to clipboard
var read: Long

The last command's or statement's result read.

Link copied to clipboard

The connection given back, the store's work done, still on its thread.

Link copied to clipboard

The call returned to the caller, its outcomes in hand.

Link copied to clipboard
var sent: Long

The first command or statement handed to the driver, its parameters or documents built.

Link copied to clipboard
val taken: Long

The batch taken by the caller, the call about to be made.

Functions

Link copied to clipboard
fun acquired()
Link copied to clipboard
fun commanded(nanos: Long)

One of the call's commands took nanos by its driver's account: counted in command between sent and read, in bindCommand before sent.

Link copied to clipboard
fun done()
Link copied to clipboard
fun encoded(nanos: Long)

The store spent nanos encoding a record of the batch, before sent.

Link copied to clipboard
fun entered()
Link copied to clipboard
fun lookedUp(nanos: Long)

The store spent nanos in a lookup while building the batch, before sent.

Link copied to clipboard
fun onThread()
Link copied to clipboard
fun read()
Link copied to clipboard
fun released()
Link copied to clipboard
fun returned()
Link copied to clipboard
fun sent()