From af362b89e16b88eb2f33aac150f83f7f34b9966b Mon Sep 17 00:00:00 2001 From: Dmitry Simonenko Date: Mon, 26 Feb 2018 15:27:10 +0300 Subject: [PATCH] odissey: extend periodic stats --- sources/periodic.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sources/periodic.c b/sources/periodic.c index 7a1740f2..2d511a46 100644 --- a/sources/periodic.c +++ b/sources/periodic.c @@ -71,17 +71,20 @@ od_periodic_stats(od_router_t *router) { int stream_count = 0; int stream_count_allocated = 0; + int stream_total_allocated = 0; shapito_cache_stat(&instance->stream_cache, &stream_count, - &stream_count_allocated); - + &stream_count_allocated, &stream_total_allocated); int count_machine = 0; int count_coroutine = 0; int count_coroutine_cache = 0; machinarium_stat(&count_machine, &count_coroutine, &count_coroutine_cache); od_log(&instance->logger, "stats", NULL, NULL, - "stream cache: (%d allocated, %d cached), coroutines: (%d active, %d cached)", + "clients %d, stream cache (%d:%d allocated, %d cached), " + "coroutines (%d active, %d cached)", + router->clients, stream_count_allocated, + stream_total_allocated, stream_count, count_coroutine, count_coroutine_cache);