@@ -252,29 +252,6 @@ Misc
252
252
253
253
(define (dboard:tabdat-make-data )
254
254
(let ((dat (make-dboard:tabdat)))
255
- ; ; curr-test-ids: (make-hash-table)
256
- ; ; command: ""
257
- ; ; dbdir: #f
258
- ; ; filters-changed: #f
259
- ; ; hide-empty-runs: #f
260
- ; ; hide-not-hide-button: #f
261
- ; ; hide-not-hide: #t
262
- ; ; key-listboxes: #f
263
- ; ; last-db-update: 0
264
- ; ; num-tests: 15
265
- ; ; originx: #f
266
- ; ; originy: #f
267
- ; ; path-run-ids: (make-hash-table)
268
- ; ; run-ids: (make-hash-table)
269
- ; ; run-keys: (make-hash-table)
270
- ; ; searchpatts: (make-hash-table)
271
- ; ; start-test-offset: 0
272
- ; ; state-ignore-hash: (make-hash-table)
273
- ; ; status-ignore-hash: (make-hash-table)
274
- ; ; xadj: 0
275
- ; ; yadj: 0
276
- ; ; view-changed: #t
277
- ; ; )))
278
255
(dboard:setup-tabdat dat)
279
256
(dboard:setup-num-rows dat)
280
257
dat))
@@ -2623,9 +2600,9 @@ Misc
2623
2600
2624
2601
; ; doesn't work.
2625
2602
; ;
2626
- (define (gotoescape tabdat escape )
2627
- (or (dboard:tabdat-layout-update-ok tabdat)
2628
- (escape #t )))
2603
+ ; ; (define (gotoescape tabdat escape)
2604
+ ; ; (or (dboard:tabdat-layout-update-ok tabdat)
2605
+ ; ; (escape #t)))
2629
2606
2630
2607
(define (dboard:graph-db-open dbstr )
2631
2608
(let* ((parts (string-split dbstr " :" ))
@@ -2740,7 +2717,6 @@ Misc
2740
2717
(mtx (dboard:tabdat-runs-mutex tabdat))
2741
2718
(drawing (dboard:tabdat-drawing tabdat))
2742
2719
(runslib (vg:get/create-lib drawing " runslib" )) ; ; creates and adds lib
2743
- (layout-start (current-milliseconds))
2744
2720
(allruns (dboard:tabdat-allruns tabdat))
2745
2721
(num-runs (length allruns))
2746
2722
(cnv (dboard:tabdat-cnv tabdat))
@@ -2808,9 +2784,9 @@ Misc
2808
2784
(width (* timescale run-duration))
2809
2785
(graph-lly (calc-y (/ -50 row-height)))
2810
2786
(graph-uly (- (calc-y 0 ) canvas-margin))
2787
+ (sec-per-50pt (/ 50 timescale))
2811
2788
)
2812
- ; ; (print "Testing. (maptime run-start=" run-start "): " (maptime run-start) " (maptime run-end=" run-end "): " (maptime run-end) " run-duration: " run-duration)
2813
- (print " run_duration: " (seconds->hr-min-sec run-duration))
2789
+ (print " timeoffset: " timeoffset " timescale: " timescale " run-duration: " (seconds->hr-min-sec run-duration) " width: " width " sec-per-50pt: " sec-per-50pt)
2814
2790
; ; (print "timescale: " timescale " timeoffset: " timeoffset " sizex: " sizex " originx: " originx)
2815
2791
(mutex-lock! mtx)
2816
2792
(vg:add-comp-to-lib runslib run-full-name runcomp)
@@ -2895,13 +2871,15 @@ Misc
2895
2871
font: " Helvetica -10" ))
2896
2872
; ; (vg:instance-move drawing run-full-name 0 (dboard:tabdat-max-row tabdat))
2897
2873
(dboard:tabdat-view-changed-set! tabdat #t ))) ; ; trigger a redraw
2898
- (if (gotoescape tabdat escape) ; ; (dboard:tabdat-layout-update-ok tabdat)
2874
+ (if (or (dboard:tabdat-layout-update-ok tabdat)
2875
+ (escape #t )) ; ; (dboard:tabdat-layout-update-ok tabdat)
2899
2876
(testitemloop (car tidstal)(cdr tidstal)(+ item-num 1 ) new-test-objs))))))
2900
2877
; ; If it is an iterated test put box around it now.
2901
2878
(if (not (null? tests-tal))
2902
2879
(if #f ; ; (> (- (current-seconds) update-start-time) 5)
2903
2880
(print " drawing runs taking too long" )
2904
- (if (gotoescape tabdat escape) ; ; (dboard:tabdat-layout-update-ok tabdat)
2881
+ (if (or (dboard:tabdat-layout-update-ok tabdat)
2882
+ (escape #t )) ; ; (dboard:tabdat-layout-update-ok tabdat)
2905
2883
(testsloop (car tests-tal)(cdr tests-tal)(+ test-num 1 )))))))
2906
2884
; ; placeholder box
2907
2885
(dboard:tabdat-max-row-set! tabdat (+ (dboard:tabdat-max-row tabdat) 1 ))
@@ -2928,7 +2906,8 @@ Misc
2928
2906
; ; (vg:instance-move drawing run-full-name 0 (dboard:tabdat-max-row tabdat))
2929
2907
))
2930
2908
; ; end of the run handling loop
2931
- (if (gotoescape tabdat escape) ; ; (dboard:tabdat-layout-update-ok tabdat)
2909
+ (if (or (dboard:tabdat-layout-update-ok tabdat)
2910
+ (escape #t )) ; ; (dboard:tabdat-layout-update-ok tabdat)
2932
2911
(let ((newdoneruns (cons rundat doneruns)))
2933
2912
(if (null? runtal)
2934
2913
(begin
@@ -2942,10 +2921,10 @@ Misc
2942
2921
; ; (time (vg:draw (dboard:tabdat-drawing tabdat) #t))
2943
2922
(dboard:tabdat-not-done-runs-set! tabdat runtal))
2944
2923
(begin
2945
- (if (gotoescape tabdat escape) ; ; (dboard:tabdat-layout-update-ok tabdat)
2924
+ (if (or (dboard:tabdat-layout-update-ok tabdat)
2925
+ (escape #t )) ; ; (dboard:tabdat-layout-update-ok tabdat)
2946
2926
(runloop (car runtal)(cdr runtal) (+ run-num 1 ) newdoneruns)))))))))) ; ; new-run-start-row
2947
- )
2948
- (print " Layout end: " (current-milliseconds) " delta: " (- (current-milliseconds) layout-start))))
2927
+ )))
2949
2928
(debug:print 2 *default-log-port* " no tabdat for run-times-tab-updater" ))))
2950
2929
2951
2930
(define (dashboard:runs-tab-updater commondat tab-num )
0 commit comments