onnxruntime/winml/lib/Telemetry/inc/TelemetryEvent.h
Justin Chu eeef157888
Format c++ code under winml/ (#16660)
winml/ was previously excluded from lintrunner config. This change
includes the directory and adds the clang-format config file specific to
winml/ that fits existing style.

---------

Signed-off-by: Justin Chu <justinchu@microsoft.com>
2023-07-25 21:56:50 -07:00

26 lines
451 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
namespace _winml::Telemetry {
enum class EventCategory {
kModelLoad = 0,
kSessionCreation,
kBinding,
kEvaluation,
};
class TelemetryEvent {
public:
TelemetryEvent(EventCategory eventCategory);
~TelemetryEvent();
private:
EventCategory category_;
std::optional<int64_t> event_id_;
};
} // namespace _winml::Telemetry