Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a5dd17c authored by Eric Tan's avatar Eric Tan Committed by Android (Google) Code Review
Browse files

Merge "Add version number to ReportPerformance::Histogram"

parents 6689f2e8 24ee2da4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ uint64_t Histogram::totalCount() const
std::string Histogram::toString() const {
    std::stringstream ss;
    static constexpr char kDivider = '|';
    ss << mBinSize << "," << mNumBins << "," << mLow << ",{";
    ss << kVersion << "," << mBinSize << "," << mNumBins << "," << mLow << ",{";
    bool first = true;
    if (mLowCount != 0) {
        ss << "-1" << kDivider << mLowCount;
+3 −0
Original line number Diff line number Diff line
@@ -112,6 +112,9 @@ public:
    std::string toString() const;

private:
    // Histogram version number.
    static constexpr int kVersion = 1;

    const double mBinSize;      // Size of each bucket
    const size_t mNumBins;      // Number of buckets in histogram range
    const double mLow;          // Lower bound of values