@@ -107,20 +107,6 @@ arguments which specify their destination files. An argument of @racket[#f]
107107}
108108]
109109
110- }
111-
112- @defproc[(contract-profile-thunk
113- [thunk (-> any )]
114- [#:module-graph-view-file module-graph-view-file (or/c path-string #f ) #f ]
115- [#:boundary-view-file boundary-view-file (or/c path-string #f ) #f ]
116- [#:boundary-view-key-file boundary-view-key-file (or/c path-string #f ) #f ]
117- [#:report-space-efficient? report-space-efficient? any/c #f ])
118- any ]{
119- Like @racket[contract-profile], but as a function which takes a thunk to
120- profile as argument.
121- }
122-
123-
124110@examples[#:eval contract-profile-eval #:preserve-source-locations
125111 (define/contract (sum* numbers)
126112 (-> (listof integer?) integer?)
@@ -139,4 +125,25 @@ arguments which specify their destination files. An argument of @racket[#f]
139125 (contract-profile (vector-max* (make-vector 10 (range (expt 10 7 )))))
140126]
141127
128+ }
129+
130+ @defproc[(contract-profile-thunk
131+ [thunk (-> any )]
132+ [#:module-graph-view-file module-graph-view-file (or/c path-string #f ) #f ]
133+ [#:boundary-view-file boundary-view-file (or/c path-string #f ) #f ]
134+ [#:boundary-view-key-file boundary-view-key-file (or/c path-string #f ) #f ]
135+ [#:report-space-efficient? report-space-efficient? any/c #f ])
136+ any ]{
137+ Like @racket[contract-profile], but as a function which takes a thunk to
138+ profile as argument.
139+ }
140+
141+
142+ @examples[#:eval contract-profile-eval #:preserve-source-locations
143+
144+ (contract-profile-thunk
145+ (lambda ()
146+ (sum* (range (expt 10 7 )))))
147+ ]
148+
142149@(close-eval contract-profile-eval)
0 commit comments