Re: [PATCH] Record SBuf and MemBlob sizes at destruct time

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 24 Nov 2013 12:16:30 +1300

On 24/11/2013 9:29 a.m., Kinkie wrote:
> Hi,
> the attached patch records (and displays in cachemgr) the histogram
> of the sizes of SBufs and MemBlobs.
>
> Builds and runs, but since SBuf is not yet used, no meaningful output
> can be obtained.
> The code lives as lp:~squid/squid/stringng (together with other not
> yet merged SBuf bits, this is a cherrypick).
>

in src/SBufDetailedStats.cc
* please name the namespace

in src/SBufDetailedStats.h
* please add an empty line between code lines and each following comment.
 - same in src/StatHist.h

* please make use of #ifndef safety wrappers

in src/SBufStatsAction.cc
* please move the warning text up to the top of the report.
 - I know its not part of this patch, but as you are altering it anyway...

Amos
Received on Sat Nov 23 2013 - 23:16:43 MST

This archive was generated by hypermail 2.2.0 : Sun Nov 24 2013 - 12:00:09 MST