racket/collects/contract-profile/utils.rkt
Vincent St-Amour 3d6776680c Move the contract profiler to its own collection.
Should become its own package once we split up the collects.

Requested by Eli, to reduce the dependencies of the profiler collection.
2013-06-07 11:01:17 -04:00

22 lines
517 B
Racket

#lang racket/base
(provide (all-defined-out))
(struct contract-profile
(total-time n-samples n-contract-samples
;; (pairof blame? profile-sample)
;; samples taken while a contract was running
live-contract-samples
;; (listof blame?)
;; all the blames that were observed during sampling
all-blames
;; profile?
;; regular time profile
regular-profile))
(define (samples-time samples)
(for/sum ([s (in-list samples)])
(cadr s)))
(define output-file-prefix "tmp-contract-profile-")