#ifndef ANGLE_TESTS_TEST_UTILS_HISTOGRAM_WRITER_H_
#define ANGLE_TESTS_TEST_UTILS_HISTOGRAM_WRITER_H_
#if !defined(ANGLE_HAS_HISTOGRAMS)
# error "Requires ANGLE_HAS_HISTOGRAMS, see angle_maybe_has_histograms"
#endif
#include <map>
#include <memory>
#include <string>
#include <rapidjson/fwd.h>
namespace catapult
{
class HistogramBuilder;
}
namespace angle
{
class HistogramWriter
{ … };
#if !ANGLE_HAS_HISTOGRAMS
inline HistogramWriter::HistogramWriter() = default;
inline HistogramWriter::~HistogramWriter() = default;
inline void HistogramWriter::addSample(const std::string &measurement,
const std::string &story,
double value,
const std::string &units)
{}
inline void HistogramWriter::getAsJSON(rapidjson::Document *doc) const {}
#endif
}
#endif