From 8e44b6acdebf7559dd46dc40d5a75fc99f2cfeb0 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 6 Dec 2011 11:51:09 +0000 Subject: [PATCH] Change the name in the profiler of Do_intersect_3 static filter Do_intersect_3 has a template member function. If one use CGAL_PRETTY_FUNCTION as function name, then the compiler gives the full name of the function, with its parameters. --- .../include/CGAL/internal/Static_filters/Do_intersect_3.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Filtered_kernel/include/CGAL/internal/Static_filters/Do_intersect_3.h b/Filtered_kernel/include/CGAL/internal/Static_filters/Do_intersect_3.h index 14ce9dfdebd..5b6cd4e0316 100644 --- a/Filtered_kernel/include/CGAL/internal/Static_filters/Do_intersect_3.h +++ b/Filtered_kernel/include/CGAL/internal/Static_filters/Do_intersect_3.h @@ -82,7 +82,8 @@ public: result_type operator()(const Segment_3 &s, const Bbox_3& b) const { - CGAL_BRANCH_PROFILER_3("semi-static failures/attempts/calls to : Do_intersect_3", tmp); + CGAL_BRANCH_PROFILER_3(std::string("semi-static failures/attempts/calls to : ") + + std::string(CGAL_PRETTY_FUNCTION), tmp); Get_approx get_approx; // Identity functor for all points // but lazy points @@ -287,7 +288,8 @@ public: result_type operator()(const Ray_3 &r, const Bbox_3& b) const { - CGAL_BRANCH_PROFILER_3("semi-static failures/attempts/calls to : Do_intersect_3", tmp); + CGAL_BRANCH_PROFILER_3(std::string("semi-static failures/attempts/calls to : ") + + std::string(CGAL_PRETTY_FUNCTION), tmp); Get_approx get_approx; // Identity functor for all points // but lazy points.