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

Kinkie gkinkie at gmail.com
Mon Aug 10 22:52:06 UTC 2015


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 new API for the HttpHeader::parse method.

BTW: there is an issue in the profiler cachemgr report - it segfaults for
me on mac.
I'll try to check it out on Linux in the next few days.

-- 
    Kinkie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20150811/5622e076/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profiler.patch
Type: application/octet-stream
Size: 4880 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20150811/5622e076/attachment-0001.obj>


More information about the squid-dev mailing list