Next: , Previous: , Up: API  


1.19 (veritas trace)

1.19.1 Parameters

Parameter: veritas-trace-frames

Default value:

()
Parameter: veritas-tracing?

Default value:

#f

1.19.2 Procedures

Procedure: read-trace KEY: #:path

Return the frames stored at path, oldest first.

Procedure: render-trace KEY: #:path #:port

Print the trace at path as a numbered timeline.

Procedure: show-last-trace

Print the trace of the last run, and return whether there was one.

Procedure: trace-event! kind name OPT: detail

Record one step of the run when tracing is on.

kind is a symbol such as test-start, assertion or test-end, name is what the step is about, and detail is a short string a reader can use to tell one frame from another.

Procedure: trace-file

Return where the last trace of this run is written.

Procedure: trace-reset!

Forget the frames recorded so far.

Procedure: write-trace! KEY: #:path

Write the frames recorded so far to path and return it.

The newest frame is last in the file, so the timeline reads top to bottom.