1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
(import big-chicken trace rmtmod apimod dbmod ulex srfi-18)
(trace-call-sites #t)
(trace
;; db:get-tests-for-run
;; rmt:general-open-connection
;; rmt:open-main-connection
;; rmt:drop-conn
;; rmt:send-receive
;; rmt:log-to-main
)
(module junk
*
(import big-chicken rmtmod apimod dbmod srfi-18)
(define (make-run-id)
(let* ((s (conc (current-process-id)))
(l (string-length s)))
(string->number (substring s (- l 3) l))
))
(define (run)
|
>
>
>
>
|
>
>
>
>
>
>
<
<
<
<
<
<
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
(module junk
*
(import big-chicken
rmtmod
apimod
dbmod
srfi-18
trace)
(trace-call-sites #t)
(trace
;; db:get-tests-for-run
;; rmt:general-open-connection
;; rmt:open-main-connection
;; rmt:drop-conn
;; rmt:send-receive
;; rmt:log-to-main
)
(define (make-run-id)
(let* ((s (conc (current-process-id)))
(l (string-length s)))
(string->number (substring s (- l 3) l))
))
(define (run)
|
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
(print "Got "(length (rmt:get-tests-for-run run-id "%" '() '() 0 #f #f #f #f #f 0 #f))" tests for run "run-id)
(print "Average query time: "avg-query-time)
(loop (+ r 1) 0 tot-query-time))))))))
)))
(thread-start! th1)
(thread-join! th1)))
)
(import junk)
(run)
|
<
<
<
|
|
49
50
51
52
53
54
55
56
57
58
59
|
(print "Got "(length (rmt:get-tests-for-run run-id "%" '() '() 0 #f #f #f #f #f 0 #f))" tests for run "run-id)
(print "Average query time: "avg-query-time)
(loop (+ r 1) 0 tot-query-time))))))))
)))
(thread-start! th1)
(thread-join! th1)))
(run)
)
|