The futures trace module exposes low-level information about the execution of parallel programs written using future .
syntax
( trace-futures e...)
procedure
( trace-futures-thunk thunk)→(listofindexed-future-event? )
thunk:(->any)
This program:
future-visualizer/trace)
Is equivalent to:
future-visualizer/trace)
procedure
procedure
procedure
( timeline-events )→(listofindexed-future-event? )
The stop-future-tracing! procedure must be used to indicate the end of code the programmer wishes to trace. Tracing works by simply using a log receiver to record all future-related log events; this procedure logs a special message that is well-known to the log receiver to mean ’stop recording’.
The timeline-events procedure returns the program trace as a list of indexed-future-event structures.
struct
#:extra-constructor-namemake-indexed-future-event)event:any
struct
proc-idactiontime-idprim-nameuser-data)#:extra-constructor-namemake-future-event#:prefab)proc-id:exact-nonnegative-integer?action:symbol?time-id:real?