From 441715205b61c488357baac294404e71e0f78345 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 17 Jan 2024 13:10:39 -0800 Subject: [PATCH] msgq: optimize queue size --- services.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/services.py b/services.py index 6436e31..5a24c01 100755 --- a/services.py +++ b/services.py @@ -126,4 +126,18 @@ def build_header(): if __name__ == "__main__": - print(build_header()) + #print(build_header()) + + # get ms + import capnp + from cereal import log + for k, v in SERVICE_LIST.items(): + sz = None + dat = log.Event.new_message() + try: + dat.init(k) + sz = dat.total_size.word_count*8 + except capnp.lib.capnp.KjException: + # TODO: lists + pass + print(k.ljust(30), sz)