DocumentTimes

class DocumentTimes

Stage times for a single document.

Note that Windows has ~15 ms resolution timers only so this may be wildly inaccurate.

Members defined in DocumentTimes (6 members)

ast

RW

The time it took to construct the AST

index

RW

The time it took to index the document

parse

RW

The time it took to parse the document

sema

RW

The time it took to semantically resolve the document.

sema_group

RW

The batch number the document was semantically resolved in

validate

RW

The time it took to validate the document

Attributes

property ast: datetime.timedelta

The time it took to construct the AST

property index: datetime.timedelta

The time it took to index the document

property parse: datetime.timedelta

The time it took to parse the document

property sema: datetime.timedelta

The time it took to semantically resolve the document.

Note that semantic resolution is done in batches to work with cyclical dependencies, therefore this time is a batch (sema_group) time.

property sema_group: int | None

The batch number the document was semantically resolved in

property validate: datetime.timedelta

The time it took to validate the document

Used in