Skip to content

Commit cbbb65b

Browse files
committed
Remove uses of 'Lwt_preemptive'
`Lwt_preemptive` was not used by Eliom but code was here to print stats about the number of busy threads, which is removed.
1 parent 70dce2b commit cbbb65b

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/lib/server/monitor/eliom_monitor.ml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,6 @@ let lwt_stats () =
8888
(Lwt_engine.writable_count ()) ]
8989
; li [ppf "%d sleeping lwt threads" (Lwt_engine.timer_count ())] ] ]
9090

91-
let preemptive_thread_stats () =
92-
div
93-
[ ul
94-
[ li
95-
[ ppf "%d detached threads (min %d,max %d)."
96-
(Lwt_preemptive.nbthreads ())
97-
(Ocsigen_config.get_minthreads ())
98-
(Ocsigen_config.get_maxthreads ()) ]
99-
; li [ppf "%d are busy threads." (Lwt_preemptive.nbthreadsbusy ())]
100-
; li
101-
[ ppf "%d computations queued (max %d)."
102-
(Lwt_preemptive.nbthreadsqueued ())
103-
(Ocsigen_config.get_max_number_of_threads_queued ()) ] ] ]
104-
10591
let http_stats () =
10692
let hosts = Ocsigen_extensions.get_hosts () in
10793
div
@@ -185,9 +171,7 @@ let content_div () =
185171
; h2 [ppf "GC"]
186172
; gc_stats ()
187173
; h2 [ppf "Lwt threads"]
188-
; lwt_stats ()
189-
; h2 [ppf "Preemptive threads"]
190-
; preemptive_thread_stats () ])
174+
; lwt_stats () ])
191175

192176
let content_html () =
193177
let* content_div = content_div () in

0 commit comments

Comments
 (0)