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

Commit 24ee2da4 authored by Eric Tan's avatar Eric Tan
Browse files

Add version number to ReportPerformance::Histogram

Test: dumpsys media.log -r
Bug: 68148948
Change-Id: Ide3da6d4f079ed9d457c6c76374b14b9e0163a4e
parent c5fee0a8
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