#include "services/image_annotation/image_annotation_metrics.h"
#include <map>
#include <string>
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/no_destructor.h"
#include "base/strings/strcat.h"
#include "base/strings/stringprintf.h"
namespace image_annotation {
kAnnotationConfidence;
kAnnotationEmpty;
void ReportCacheHit(const bool cache_hit) { … }
void ReportJsonParseSuccess(const bool success) { … }
void ReportPixelFetchSuccess(const bool success) { … }
void ReportOcrAnnotation(const double confidence, const bool empty) { … }
void ReportDescAnnotation(const mojom::AnnotationType type,
const double confidence,
const bool empty) { … }
void ReportDescFailure(const DescFailureReason reason) { … }
void ReportServerNetError(const int code) { … }
void ReportServerResponseCode(const int code) { … }
void ReportServerLatency(const base::TimeDelta latency) { … }
void ReportImageRequestIncludesDesc(const bool includes_desc) { … }
void ReportImageRequestIncludesIcon(const bool includes_icon) { … }
void ReportServerRequestSizeKB(const size_t size_kb) { … }
void ReportServerResponseSizeBytes(const size_t size_bytes) { … }
void ReportOcrStatus(const int status) { … }
void ReportDescStatus(const int status) { … }
void ReportEngineKnown(const bool known) { … }
void ReportSourcePixelCount(const size_t pixel_count) { … }
void ReportEncodedJpegSize(const size_t size_bytes) { … }
void ReportClientResult(const ClientResult result) { … }
}