Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
HEAD
/
.
/
tests
/
bench
/
ghc-gc.py
blob: 0fb7b221072917c376890e7f7742614713703918 [
file
]
#!/usr/bin/env python3
import
ast
import
sys
info
=
dict
(
ast
.
literal_eval
(
sys
.
stdin
.
read
().
strip
()))
gc_pc
=
float
(
info
[
'GC_cpu_seconds'
])
/
float
(
info
[
'total_cpu_seconds'
])
*
100
print
(
f
"gc: {gc_pc}"
)