Add a logging_timer macro to te criterion next methods

This commit is contained in:
Clément Renault
2021-03-06 11:28:22 +01:00
committed by Kerollmops
parent 82a0f678fb
commit b18ec00a7a
7 changed files with 113 additions and 49 deletions

View File

@ -47,6 +47,7 @@ impl<'t> Words<'t> {
}
impl<'t> Criterion for Words<'t> {
#[logging_timer::time("Words::{}")]
fn next(&mut self, wdcache: &mut WordDerivationsCache) -> anyhow::Result<Option<CriterionResult>> {
use Candidates::{Allowed, Forbidden};
loop {