Skip to content

Commit c862ca5

Browse files
author
mrwellan
committed
enabled the escape from updating the run-times graph
1 parent e52cab2 commit c862ca5

File tree

1 file changed

+14
-35
lines changed

1 file changed

+14
-35
lines changed

dashboard.scm

Lines changed: 14 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -252,29 +252,6 @@ Misc
252252

253253
(define (dboard:tabdat-make-data)
254254
(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-
;; )))
278255
(dboard:setup-tabdat dat)
279256
(dboard:setup-num-rows dat)
280257
dat))
@@ -2623,9 +2600,9 @@ Misc
26232600

26242601
;; doesn't work.
26252602
;;
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)))
26292606

26302607
(define (dboard:graph-db-open dbstr)
26312608
(let* ((parts (string-split dbstr ":"))
@@ -2740,7 +2717,6 @@ Misc
27402717
(mtx (dboard:tabdat-runs-mutex tabdat))
27412718
(drawing (dboard:tabdat-drawing tabdat))
27422719
(runslib (vg:get/create-lib drawing "runslib")) ;; creates and adds lib
2743-
(layout-start (current-milliseconds))
27442720
(allruns (dboard:tabdat-allruns tabdat))
27452721
(num-runs (length allruns))
27462722
(cnv (dboard:tabdat-cnv tabdat))
@@ -2808,9 +2784,9 @@ Misc
28082784
(width (* timescale run-duration))
28092785
(graph-lly (calc-y (/ -50 row-height)))
28102786
(graph-uly (- (calc-y 0) canvas-margin))
2787+
(sec-per-50pt (/ 50 timescale))
28112788
)
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)
28142790
;; (print "timescale: " timescale " timeoffset: " timeoffset " sizex: " sizex " originx: " originx)
28152791
(mutex-lock! mtx)
28162792
(vg:add-comp-to-lib runslib run-full-name runcomp)
@@ -2895,13 +2871,15 @@ Misc
28952871
font: "Helvetica -10"))
28962872
;; (vg:instance-move drawing run-full-name 0 (dboard:tabdat-max-row tabdat))
28972873
(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)
28992876
(testitemloop (car tidstal)(cdr tidstal)(+ item-num 1) new-test-objs))))))
29002877
;; If it is an iterated test put box around it now.
29012878
(if (not (null? tests-tal))
29022879
(if #f ;; (> (- (current-seconds) update-start-time) 5)
29032880
(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)
29052883
(testsloop (car tests-tal)(cdr tests-tal)(+ test-num 1)))))))
29062884
;; placeholder box
29072885
(dboard:tabdat-max-row-set! tabdat (+ (dboard:tabdat-max-row tabdat) 1))
@@ -2928,7 +2906,8 @@ Misc
29282906
;; (vg:instance-move drawing run-full-name 0 (dboard:tabdat-max-row tabdat))
29292907
))
29302908
;; 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)
29322911
(let ((newdoneruns (cons rundat doneruns)))
29332912
(if (null? runtal)
29342913
(begin
@@ -2942,10 +2921,10 @@ Misc
29422921
;; (time (vg:draw (dboard:tabdat-drawing tabdat) #t))
29432922
(dboard:tabdat-not-done-runs-set! tabdat runtal))
29442923
(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)
29462926
(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+
)))
29492928
(debug:print 2 *default-log-port* "no tabdat for run-times-tab-updater"))))
29502929

29512930
(define (dashboard:runs-tab-updater commondat tab-num)

0 commit comments

Comments
 (0)