[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #8539] Reduce profiling overhead using inl

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

if (fcn == "")
  is_active = false;  // Inactive profiling block
  acc.enter_function (fcn);

which should do the trick.


Reply to this item at:


  Message posté via/par Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]