chromium/components/optimization_guide/core/execution_status.h

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_OPTIMIZATION_GUIDE_CORE_EXECUTION_STATUS_H_
#define COMPONENTS_OPTIMIZATION_GUIDE_CORE_EXECUTION_STATUS_H_

#include <string>

namespace optimization_guide {

// The status of a model execution. These values are logged to UMA histograms,
// do not change or reorder values. Make sure to update
// |OptimizationGuideExecutionStatus| in //tools/metrics/histograms/enums.xml.
enum class ExecutionStatus {};

// Returns a string representation of |status|.
std::string ExecutionStatusToString(ExecutionStatus status);

}  // namespace optimization_guide

#endif  // COMPONENTS_OPTIMIZATION_GUIDE_CORE_EXECUTION_STATUS_H_