Review Board 2.0.15


stats: Add a histogram statistic type

Review Request #357 - Created Dec. 21, 2010 and submitted

Information
Nathan Binkert
gem5
Reviewers
Default
ali, gblack, nate, stever
stats: Add a histogram statistic type

   
Ship it!
Posted (Dec. 21, 2010, 8:33 a.m.)



  
Ship it!
Posted (Dec. 21, 2010, 2:45 p.m.)
Didn't check it closely, but it looks fine from a quick skim.
Ship it!
Posted (Jan. 6, 2011, 8:50 a.m.)
Didn't check your logic/math or anything, but looks good...so, this is just like Dist but the buckets change dynamically?  Awesome.
Posted (Jan. 8, 2011, 2:32 a.m.)



  
src/base/statistics.hh (Diff revision 1)
 
 
Nate, can you add a function that returns the sum?
Posted (Jan. 8, 2011, 2:35 a.m.)



  
src/base/statistics.hh (Diff revision 1)
 
 
I am using your Histogram class to replace the statistics currently being used in Ruby.
Posted (Jan. 8, 2011, 2:41 a.m.)



  
src/base/statistics.hh (Diff revision 1)
 
 
This line seems to be incorrect. squares is being updated with val*val*number*number. Should it not be val*val*number?
  1. Good catch.
Posted (Jan. 8, 2011, 5:21 a.m.)
How to handle vector of histograms? Should we define a new
class similar to VectorDistribution? I have to point out
that Ruby also has a vector of vector of histograms in the
Profiler class.
Posted (Jan. 8, 2011, 2:26 p.m.)



  
src/base/statistics.hh (Diff revision 1)
 
 
Why do you want this?  Generally, we don't expose the internals of stats and I'm reluctant to do so.
  1. Since the average is being printed, I am fine with not having such a function.
Posted (Jan. 9, 2011, 3:36 a.m.)
With each bucket, both the name and description of the histogram are printed. I think this is unnecessary. Should each bucket's count be printed in a new line? Again, seems unnecessary to me.