• Adam Simpkins's avatar
    update TimeseriesHistogram::rate to return a template type · bd8228d9
    Adam Simpkins authored
    Summary:
    Update TimeseriesHistogram::rate(int level) to have a configurable return type,
    similar to the rate(TimeType start, TimeType end) function, as well as the
    avg() functions.  I believe it was simply an oversight initially that this
    version of rate did not have a configurable return type.
    
    Since rate() and avg() are template methods, their full definitions should
    really be available in TimeseriesHistogram.h rather than
    TimeseriesHistogram-defs.h.  This also fixes that problem.  Most of the logic
    in these functions isn't actually dependent on the return type, so that was
    split out into separate non-template helper functions that are still in
    TimeseriesHistogram-defs.h
    
    Reviewed By: yfeldblum
    
    Differential Revision: D3776017
    
    fbshipit-source-id: 7deebf5b9ea1be143b5d772a15246706cb0cae80
    bd8228d9
TimeseriesHistogramTest.cpp 19.1 KB