From d064b9492c966913ed136d264d367277fe725607 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 21 Feb 2019 13:38:43 -0800 Subject: [PATCH] modules/console: Add -a option to resource cmd; hide unused resources by default. --- modules/console.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/console.cc b/modules/console.cc index c2fba72af..7c653bc02 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -4639,7 +4639,7 @@ console_cmd__resource(opt &out, const string_view &line) param["method"] }; - if(path && method) + if(path && method && path != "-a") { const auto &r { @@ -4671,6 +4671,9 @@ console_cmd__resource(opt &out, const string_view &line) { assert(mp.second); const auto &m{*mp.second}; + if(path != "-a" && !m.stats->requests) + continue; + out << std::setw(56) << std::left << p.first << " " << std::setw(7) << mp.first