#include "base/metrics/histogram_delta_serialization.h"
#include "base/containers/span.h"
#include "base/logging.h"
#include "base/metrics/histogram_base.h"
#include "base/metrics/histogram_snapshot_manager.h"
#include "base/metrics/statistics_recorder.h"
#include "base/numerics/safe_conversions.h"
#include "base/pickle.h"
#include "base/values.h"
namespace base {
namespace {
void DeserializeHistogramAndAddSamples(PickleIterator* iter) { … }
}
HistogramDeltaSerialization::HistogramDeltaSerialization(
const std::string& caller_name)
: … { … }
HistogramDeltaSerialization::~HistogramDeltaSerialization() = default;
void HistogramDeltaSerialization::PrepareAndSerializeDeltas(
std::vector<std::string>* serialized_deltas,
bool include_persistent) { … }
void HistogramDeltaSerialization::DeserializeAndAddSamples(
const std::vector<std::string>& serialized_deltas) { … }
void HistogramDeltaSerialization::RecordDelta(
const HistogramBase& histogram,
const HistogramSamples& snapshot) { … }
}