Document contract-profile-thunk.

This commit is contained in:
Vincent St-Amour 2014-02-28 10:37:58 -05:00
parent 0d689ed389
commit 3a2c2514a6
2 changed files with 5 additions and 1 deletions

View File

@ -239,6 +239,5 @@
(and (not (empty? s)) (vector-ref (car s) 0))))
(analyze-contract-samples contract-samples samples)))))
;; TODO: document
(define (contract-profile-thunk f)
(contract-profile/user (f)))

View File

@ -67,3 +67,8 @@ file.
]
}
@defproc[(contract-profile-thunk [thunk (-> any)]) any]{
Like @racket[contract-profile], but as a function which takes a thunk to
profile as argument.
}