From 9ef5e096a767cd70dc964f4dcd41b0a1e056e70d Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Tue, 1 Sep 2020 14:45:21 -0700 Subject: [PATCH] TMP: adds ivory-pill boot-timing printfs --- pkg/urbit/vere/king.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg/urbit/vere/king.c b/pkg/urbit/vere/king.c index 60f8a2c76..aa2ae9601 100644 --- a/pkg/urbit/vere/king.c +++ b/pkg/urbit/vere/king.c @@ -762,7 +762,16 @@ u3_king_commence() // boot the ivory pill // - _king_boot_ivory(); + { + struct timeval b4, f2, d0; + gettimeofday(&b4, 0); + + _king_boot_ivory(); + + gettimeofday(&f2, 0); + timersub(&f2, &b4, &d0); + fprintf(stderr, "lite: boot %lu ms\r\n", (d0.tv_sec * 1000) + (d0.tv_usec / 1000)); + } // disable core dumps (due to lmdb size) //