23 lines
977 B
Racket
23 lines
977 B
Racket
#lang scribble/doc
|
|
@(require "common.rkt")
|
|
|
|
@mzlib[#:mode title traceld]
|
|
|
|
The @racketmodname[mzlib/traceld] library does not provide any
|
|
bindings. Instead, @racketmodname[mzlib/traceld] is @racket[require]d
|
|
for its side-effects.
|
|
|
|
The @racketmodname[mzlib/traceld] library installs a new load handler
|
|
(see @racket[current-load]) and load-extension handler (see
|
|
@racket[current-load-extension]) to print information about the files
|
|
that are loaded. These handlers chain to the current handlers to
|
|
perform the actual loads. Trace output is printed to the port that is
|
|
the current error port (see @racket[current-error-port]) when the
|
|
library is instantiated.
|
|
|
|
Before a file is loaded, the tracer prints the file name and ``time''
|
|
(as reported by the procedure @racket[current-process-milliseconds])
|
|
when the load starts. Trace information for nested loads is printed
|
|
with indentation. After the file is loaded, the file name is printed
|
|
with the ``time'' that the load completed.
|