Fix get-custom-snapshots to conform to the docs.
This commit is contained in:
parent
01ca493389
commit
7d45129fca
|
@ -219,5 +219,5 @@
|
|||
(define samples (sampler 'get-snapshots))
|
||||
(define contract-samples
|
||||
(for/list ([s (in-list (sampler 'get-custom-snapshots))])
|
||||
(and s (vector-ref s 0))))
|
||||
(and (not (empty? s)) (vector-ref (car s) 0))))
|
||||
(analyze-contract-samples contract-samples samples)))))
|
||||
|
|
|
@ -124,12 +124,9 @@
|
|||
(unless (eq? t sampler-thread)
|
||||
(when custom-keys
|
||||
(set! custom-snapshots
|
||||
(cons (let ([cms (continuation-mark-set->list*
|
||||
(continuation-marks t)
|
||||
custom-keys)])
|
||||
(if (null? cms)
|
||||
#f
|
||||
(car cms))) ; value
|
||||
(cons (continuation-mark-set->list*
|
||||
(continuation-marks t)
|
||||
custom-keys) ; frames
|
||||
custom-snapshots)))
|
||||
(set! snapshots
|
||||
(cons (list* (thread-id t)
|
||||
|
|
Loading…
Reference in New Issue
Block a user