Re: [squid-dev] [RFC][CODE] RAII profiler

2015-08-11 Thread Alex Rousskov
On 08/10/2015 04:52 PM, Kinkie wrote: Hi, the attached patch implements a profiler API fashioned after the RAII pattern. It does nothing to attack the c API or the implementation, just adds on top of it a Profiler class to save the caller the hassle of having to track all exit paths from a

[squid-dev] [RFC][CODE] RAII profiler

2015-08-10 Thread Kinkie
Hi, the attached patch implements a profiler API fashioned after the RAII pattern. It does nothing to attack the c API or the implementation, just adds on top of it a Profiler class to save the caller the hassle of having to track all exit paths from a function. As an example, it implements the

Re: [squid-dev] [RFC][CODE] RAII profiler

2015-08-10 Thread Amos Jeffries
On 11/08/2015 10:52 a.m., Kinkie wrote: Hi, the attached patch implements a profiler API fashioned after the RAII pattern. It does nothing to attack the c API or the implementation, just adds on top of it a Profiler class to save the caller the hassle of having to track all exit paths from