This is the mail archive of the systemtap@sources.redhat.com mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: runtime status


On Thu, 2005-06-02 at 00:23, Martin Hunt wrote:
...
> --- STATS ---
> %m - min
> %M - max
> %A - avg
> %S - sum
> %H - histogram
> %C - count

Consider also computing variance, which can be computed from the sum and
count (which you're already computing) and the sum of x*x (x*x = the
square of the observed value):
  variance = SS/(n - 1)
  SS = sum of x*x - ((sum*sum)/n)
Of course, you'd lose some precision due to integer arithmetic.

Standard deviation (sqrt(variance)) would be even nicer, but I don't
think sqrt() is something you want to add to the kernel.:-)

Jim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]