mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-27 22:45:57 +00:00
* 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.
27 lines
No EOL
480 B
C++
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
|