ONNX Runtime
Loading...
Searching...
No Matches
Ort::detail::ConstProfilingEventImpl< T > Struct Template Reference

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::detail::ConstProfilingEventImpl< T >:
Ort::detail::Base< T >

Public Types

using B = Ort::detail::Base< T >
 
- Public Types inherited from Ort::detail::Base< T >
using contained_type = T
 

Public Member Functions

OrtProfilingEventCategory GetCategory () const
 Get the event category. Wraps OrtEpApi::ProfilingEvent_GetCategory.
 
const char * GetName () const
 Get the event name. Wraps OrtEpApi::ProfilingEvent_GetName.
 
int64_t GetTimestampUs () const
 Get the start timestamp in microseconds. Wraps OrtEpApi::ProfilingEvent_GetTimestampUs.
 
int64_t GetDurationUs () const
 Get the duration in microseconds. Wraps OrtEpApi::ProfilingEvent_GetDurationUs.
 
const char * GetArgValue (const char *key) const
 Get the value of an event argument by key. Wraps OrtEpApi::ProfilingEvent_GetArgValue.
 
- Public Member Functions inherited from Ort::detail::Base< T >
constexpr Base ()=default
 
constexpr Base (contained_type *p) noexcept
 
 ~Base ()
 
 Base (const Base &)=delete
 
Baseoperator= (const Base &)=delete
 
 Base (Base &&v) noexcept
 
Baseoperator= (Base &&v) noexcept
 
constexpr operator contained_type * () const noexcept
 
constexpr contained_typeoperator* () const noexcept
 
contained_typerelease ()
 Relinquishes ownership of the contained C object pointer The underlying object is not destroyed.
 

Additional Inherited Members

- Protected Attributes inherited from Ort::detail::Base< T >
contained_typep_ {}
 

Member Typedef Documentation

◆ B

template<typename T >
using Ort::detail::ConstProfilingEventImpl< T >::B = Ort::detail::Base<T>

Member Function Documentation

◆ GetArgValue()

template<typename T >
const char * Ort::detail::ConstProfilingEventImpl< T >::GetArgValue ( const char *  key) const

Get the value of an event argument by key. Wraps OrtEpApi::ProfilingEvent_GetArgValue.

Parameters
[in]keyNull-terminated argument key to look up.
Returns
Null-terminated UTF-8 string owned by the OrtProfilingEvent, or nullptr if key not found.

◆ GetCategory()

template<typename T >
OrtProfilingEventCategory Ort::detail::ConstProfilingEventImpl< T >::GetCategory ( ) const

Get the event category. Wraps OrtEpApi::ProfilingEvent_GetCategory.

◆ GetDurationUs()

template<typename T >
int64_t Ort::detail::ConstProfilingEventImpl< T >::GetDurationUs ( ) const

Get the duration in microseconds. Wraps OrtEpApi::ProfilingEvent_GetDurationUs.

◆ GetName()

template<typename T >
const char * Ort::detail::ConstProfilingEventImpl< T >::GetName ( ) const

Get the event name. Wraps OrtEpApi::ProfilingEvent_GetName.

Returns
Null-terminated UTF-8 string owned by the OrtProfilingEvent instance. Do not free.

◆ GetTimestampUs()

template<typename T >
int64_t Ort::detail::ConstProfilingEventImpl< T >::GetTimestampUs ( ) const

Get the start timestamp in microseconds. Wraps OrtEpApi::ProfilingEvent_GetTimestampUs.