Skip to main content

ProfilerKernelInvocation Struct

One kernel-invocation telemetry event. More...

Declaration

struct simaai::neat::ProfilerKernelInvocation { ... }

Included Headers

#include <LatencyProfiler.h>

Public Member Functions Index

doubleduration_ms () const

Convenience: event duration in milliseconds. More...

Public Member Attributes Index

std::uint64_tstart_ns = 0

Event start timestamp (CLOCK_MONOTONIC, ns). More...

std::uint64_tend_ns = 0

Event end timestamp (CLOCK_MONOTONIC, ns). More...

std::stringbackend

"MLA", "A65", "EV74", "BoxDecode", "Memcpy". More...

std::stringphase

"Run", "Load", "GetHandle", ... More...

std::int32_tphysical_input_index = -1

Physical input index, -1 if N/A. More...

std::int32_toutput_slot = -1

Output slot, -1 if N/A. More...

std::int64_tframe_id = -1

Logical frame id, -1 if not tagged. More...

std::uint32_trequest_id = 0

Backend request id (0 if unset). More...

std::uint32_tbytes = 0

Bytes moved/processed (0 if N/A). More...

std::stringkernel_name

Kernel name (backend-specific). More...

std::stringstage_name

Pipeline stage name. More...

std::stringin_segment

Input segment label. More...

std::stringout_segment

Output segment label. More...

Description

One kernel-invocation telemetry event.

Captures the wall-clock start/end timestamps of a single kernel run plus the routing context (which backend, which physical input, which output slot, which logical frame) so events from different backends can be cross-correlated into a unified timeline.

Definition at line 74 of file LatencyProfiler.h.

Public Member Functions

duration_ms()

double simaai::neat::ProfilerKernelInvocation::duration_ms ()
inline

Convenience: event duration in milliseconds.

Definition at line 90 of file LatencyProfiler.h.

90 double duration_ms() const {
91 return static_cast<double>(end_ns - start_ns) / 1.0e6;
92 }

Public Member Attributes

backend

std::string simaai::neat::ProfilerKernelInvocation::backend

"MLA", "A65", "EV74", "BoxDecode", "Memcpy".

Definition at line 77 of file LatencyProfiler.h.

77 std::string backend;

bytes

std::uint32_t simaai::neat::ProfilerKernelInvocation::bytes = 0

Bytes moved/processed (0 if N/A).

Definition at line 83 of file LatencyProfiler.h.

83 std::uint32_t bytes = 0;

end_ns

std::uint64_t simaai::neat::ProfilerKernelInvocation::end_ns = 0

Event end timestamp (CLOCK_MONOTONIC, ns).

Definition at line 76 of file LatencyProfiler.h.

76 std::uint64_t end_ns = 0;

frame_id

std::int64_t simaai::neat::ProfilerKernelInvocation::frame_id = -1

Logical frame id, -1 if not tagged.

Definition at line 81 of file LatencyProfiler.h.

81 std::int64_t frame_id = -1;

in_segment

std::string simaai::neat::ProfilerKernelInvocation::in_segment

Input segment label.

Definition at line 86 of file LatencyProfiler.h.

86 std::string in_segment;

kernel_name

std::string simaai::neat::ProfilerKernelInvocation::kernel_name

Kernel name (backend-specific).

Definition at line 84 of file LatencyProfiler.h.

84 std::string kernel_name;

out_segment

std::string simaai::neat::ProfilerKernelInvocation::out_segment

Output segment label.

Definition at line 87 of file LatencyProfiler.h.

87 std::string out_segment;

output_slot

std::int32_t simaai::neat::ProfilerKernelInvocation::output_slot = -1

Output slot, -1 if N/A.

Definition at line 80 of file LatencyProfiler.h.

80 std::int32_t output_slot = -1;

phase

std::string simaai::neat::ProfilerKernelInvocation::phase

"Run", "Load", "GetHandle", ...

Definition at line 78 of file LatencyProfiler.h.

78 std::string phase;

physical_input_index

std::int32_t simaai::neat::ProfilerKernelInvocation::physical_input_index = -1

Physical input index, -1 if N/A.

Definition at line 79 of file LatencyProfiler.h.

79 std::int32_t physical_input_index = -1;

request_id

std::uint32_t simaai::neat::ProfilerKernelInvocation::request_id = 0

Backend request id (0 if unset).

Definition at line 82 of file LatencyProfiler.h.

82 std::uint32_t request_id = 0;

stage_name

std::string simaai::neat::ProfilerKernelInvocation::stage_name

Pipeline stage name.

Definition at line 85 of file LatencyProfiler.h.

85 std::string stage_name;

start_ns

std::uint64_t simaai::neat::ProfilerKernelInvocation::start_ns = 0

Event start timestamp (CLOCK_MONOTONIC, ns).

Definition at line 75 of file LatencyProfiler.h.

75 std::uint64_t start_ns = 0;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.