From 39d86cb896cb4bb5e6a9edfe2a2ac83ca829cd60 Mon Sep 17 00:00:00 2001 From: Braden Ganetsky Date: Sun, 2 Jun 2024 11:27:15 -0500 Subject: [PATCH] Display foa stats in natvis if applicable --- extra/boost_unordered.natvis | 69 ++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 2 deletions(-) diff --git a/extra/boost_unordered.natvis b/extra/boost_unordered.natvis index e0f5bc46..d4dbc186 100644 --- a/extra/boost_unordered.natvis +++ b/extra/boost_unordered.natvis @@ -8,7 +8,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - + @@ -20,7 +20,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - + hash(active_idx()) key_eq(active_idx()) @@ -159,6 +159,69 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + + + + stats + + insertion + successful_lookup + unsuccessful_lookup + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ count = {n} }} + + n + + {{ average = {average(0)} }} + + average(0) + variance(0) + deviation(0) + + + + {{ average = {average(1)} }} + + average(1) + variance(1) + deviation(1) + + + + + @@ -189,6 +252,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + cstats @@ -233,6 +297,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + cstats