mirage / prometheus

OCaml library for reporting metrics to a Prometheus server
Apache License 2.0
49 stars 27 forks source link

Use Gc.quick_stat for faster stats #25

Closed talex5 closed 4 years ago

talex5 commented 4 years ago

Gc.stat spends time exploring the heap to collect more statistics, which we didn't report anyway.

For large heaps, Gc.stat can be a problem: I see collection times of around 2s with a 16GB heap.