#include "HistogramWriter.h"
#include "common/debug.h"
#include <rapidjson/document.h>
#if !ANGLE_HAS_HISTOGRAMS
# error "Must have histograms enabled"
#endif
ANGLE_DISABLE_EXTRA_SEMI_WARNING
ANGLE_DISABLE_EXTRA_SEMI_STMT_WARNING
ANGLE_DISABLE_DESTRUCTOR_OVERRIDE_WARNING
ANGLE_DISABLE_SUGGEST_OVERRIDE_WARNINGS
#include "tracing/tracing/value/diagnostics/reserved_infos.h"
#include "tracing/tracing/value/histogram.h"
ANGLE_REENABLE_SUGGEST_OVERRIDE_WARNINGS
ANGLE_REENABLE_DESTRUCTOR_OVERRIDE_WARNING
ANGLE_REENABLE_EXTRA_SEMI_STMT_WARNING
ANGLE_REENABLE_EXTRA_SEMI_WARNING
js;
namespace proto = catapult::tracing::tracing::proto;
namespace angle
{
namespace
{
std::string UnitAndDirectionToString(proto::UnitAndDirection unit)
{ … }
proto::UnitAndDirection StringToUnitAndDirection(const std::string &str)
{ … }
}
HistogramWriter::HistogramWriter() = default;
HistogramWriter::~HistogramWriter() = default;
void HistogramWriter::addSample(const std::string &measurement,
const std::string &story,
double value,
const std::string &units)
{ … }
void HistogramWriter::getAsJSON(js::Document *doc) const
{ … }
}