onnxruntime/winml/lib/Telemetry/inc/TelemetryEvent.h
Xiang Zhang 5c28eb61d5
User/xianz/dedup telemetry (#2631)
* investigate duplication of telemetry in winml and ort

* remove winml telemetry events

* telemetry executionProviderEvent

* remove unneccessary file and refactor code little bit

* Revert back TelemetryEvent, which send up ETW event.
2019-12-11 16:21:57 -08:00

27 lines
No EOL
480 B
C++

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
namespace Windows::AI::MachineLearning::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 Windows::AI::MachineLearning::Telemetry