From ad723189c90c37ffdba34c2db5c764ceb2192086 Mon Sep 17 00:00:00 2001 From: Arnur Nigmetov Date: Mon, 24 Apr 2017 17:12:46 +0200 Subject: Verbose timing for bottleneck added Timing info is printed, if VERBOSE_BOTTLENECK is #defined in def_debug_bt.h. --- geom_bottleneck/bottleneck/src/bottleneck.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'geom_bottleneck/bottleneck/src/bottleneck.cpp') diff --git a/geom_bottleneck/bottleneck/src/bottleneck.cpp b/geom_bottleneck/bottleneck/src/bottleneck.cpp index da0c425..f90e5c9 100644 --- a/geom_bottleneck/bottleneck/src/bottleneck.cpp +++ b/geom_bottleneck/bottleneck/src/bottleneck.cpp @@ -208,10 +208,15 @@ std::pair bottleneckDistApproxIntervalHeur(DiagramPointSet& A, D DiagramPointSet sampledA, sampledB; sampleDiagramForHeur(A, sampledA); sampleDiagramForHeur(B, sampledB); - //std::cout << "A : " << A.size() << ", sampled: " << sampledA.size() << std::endl; - //std::cout << "B : " << B.size() << ", sampled: " << sampledB.size() << std::endl; +#ifdef VERBOSE_BOTTLENECK + std::cout << "A : " << A.size() << ", sampled: " << sampledA.size() << std::endl; + std::cout << "B : " << B.size() << ", sampled: " << sampledB.size() << std::endl; +#endif std::pair initGuess = bottleneckDistApproxInterval(sampledA, sampledB, epsilon); - //std::cout << "initial guess: " << initGuess.first << ", " << initGuess.second << std::endl; +#ifdef VERBOSE_BOTTLENECK + std::cout << "initial guess with sampling: " << initGuess.first << ", " << initGuess.second << std::endl; + std::cout << "running on the original diagrams" << std::endl; +#endif return bottleneckDistApproxIntervalWithInitial(A, B, epsilon, initGuess); } -- cgit v1.2.3