#include "services/on_device_model/ml/utils.h"
#include "base/compiler_specific.h"
#include "base/metrics/field_trial_params.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/strcat.h"
#include "base/system/sys_info.h"
#include "components/optimization_guide/core/optimization_guide_features.h"
namespace ml {
namespace {
constexpr uint64_t kBytesPerMb = …;
const base::FeatureParam<int> kLowRAMThreshold{ … };
const base::FeatureParam<int> kHighRAMThreshold{ … };
const base::FeatureParam<int> kLowOutputThreshold{ … };
const base::FeatureParam<int> kLowThreshold{ … };
const base::FeatureParam<int> kMediumThreshold{ … };
const base::FeatureParam<int> kHighThreshold{ … };
const base::FeatureParam<int> kVeryHighThreshold{ … };
enum class VeryLowPerformanceReason { … };
void LogVeryLowReason(VeryLowPerformanceReason reason) { … }
}
COMPONENT_EXPORT(ON_DEVICE_MODEL_ML)
DISABLE_CFI_DLSYM
on_device_model::mojom::PerformanceClass GetEstimatedPerformanceClass(
const ChromeML& chrome_ml) { … }
}