The futures visualizer is a graphical profiling tool for parallel programs written using future. The tool shows a timeline of a program’s execution including all future-related events, as well as the overall amount of processor utilization at any point during the program’s lifetime.
A typical program using profiling might look like the following:
(require racket/future future-visualizer) (visualize-futures (let ([f (future (lambda () ...))]) ... (touch f)))
The preceding program is equivalent to:
(require racket/future future-visualizer/trace future-visualizer) (start-future-tracing!) (let ([f (future (lambda () ...))]) ... (touch f)) (stop-future-tracing!) (show-visualizer)