|
From: | Julien Bect |
Subject: | [Octave-patch-tracker] [patch #8539] Reduce profiling overhead using inlining and templates |
Date: | Wed, 12 Nov 2014 08:24:24 +0000 |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:33.0) Gecko/20100101 Firefox/33.0 |
Follow-up Comment #10, patch #8539 (project octave): Some explanations about my latest patch. The segfault problem probably comes from the fact that acc->enter_function () is not called in enter::enter () if profiler_name () returns "". In this case, the block should be marked inactive (is_active = FALSE) to prevent enter::~enter () from calling acc->exit_function (). The latest patch only differs from the earlier one by the following piece of code if (fcn == "") is_active = false; // Inactive profiling block else acc.enter_function (fcn); which should do the trick. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/patch/?8539> _______________________________________________ Message posté via/par Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |