|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Lightweight performance profiler for libsimcore runtime execution. More...


Go to the source code of this file.
Classes | |
| struct | SimProfilerSnapshot |
| Snapshot of accumulated frame statistics. More... | |
| struct | SimProfilerCounter |
| Per-operator statistics tracked during profiling. More... | |
| struct | SimProfiler |
| Profiler state used by the runtime scheduler. More... | |
Typedefs | |
| typedef struct SimProfilerSnapshot | SimProfilerSnapshot |
| Snapshot of accumulated frame statistics. | |
| typedef struct SimProfilerCounter | SimProfilerCounter |
| Per-operator statistics tracked during profiling. | |
| typedef struct SimProfiler | SimProfiler |
| Profiler state used by the runtime scheduler. | |
Functions | |
| SimResult | sim_profiler_init (SimProfiler *profiler, size_t operators) |
Initialize the profiler for operators tracked counters. | |
| void | sim_profiler_destroy (SimProfiler *profiler) |
| Release resources held by the profiler. | |
| void | sim_profiler_begin_frame (SimProfiler *profiler) |
| Begin a new profiling frame. | |
| void | sim_profiler_end_frame (SimProfiler *profiler) |
| Complete the active profiling frame. | |
| void | sim_profiler_record_operator (SimProfiler *profiler, size_t operator_index, uint64_t duration_ns) |
| Record the execution time for an operator. | |
| void | sim_profiler_record_operator_delta (SimProfiler *profiler, size_t operator_index, double delta_rms, uint64_t sample_count) |
| Record a delta RMS contribution for an operator. | |
| SimResult | sim_profiler_snapshot (const SimProfiler *profiler, SimProfilerSnapshot *out_snapshot) |
| Populate a snapshot of the most recent frame statistics. | |
Lightweight performance profiler for libsimcore runtime execution.
| void sim_profiler_begin_frame | ( | SimProfiler * | profiler | ) |
Begin a new profiling frame.
| profiler | Profiler instance. |
| void sim_profiler_destroy | ( | SimProfiler * | profiler | ) |
Release resources held by the profiler.
| profiler | Profiler instance; may be NULL. |
| void sim_profiler_end_frame | ( | SimProfiler * | profiler | ) |
Complete the active profiling frame.
| profiler | Profiler instance. |
| SimResult sim_profiler_init | ( | SimProfiler * | profiler, |
| size_t | operators | ||
| ) |
Initialize the profiler for operators tracked counters.
| [out] | profiler | Profiler instance to initialize. |
| operators | Number of operators to track. |
| void sim_profiler_record_operator | ( | SimProfiler * | profiler, |
| size_t | operator_index, | ||
| uint64_t | duration_ns | ||
| ) |
Record the execution time for an operator.
| profiler | Profiler instance. |
| operator_index | Index of the operator within the execution plan. |
| duration_ns | Execution duration in nanoseconds. |
| void sim_profiler_record_operator_delta | ( | SimProfiler * | profiler, |
| size_t | operator_index, | ||
| double | delta_rms, | ||
| uint64_t | sample_count | ||
| ) |
Record a delta RMS contribution for an operator.
| profiler | Profiler instance. |
| operator_index | Index of the operator within the plan. |
| delta_rms | Root-mean-square of the operator's field change (single sample or aggregated). |
| sample_count | Number of samples used to estimate delta_rms. |
| SimResult sim_profiler_snapshot | ( | const SimProfiler * | profiler, |
| SimProfilerSnapshot * | out_snapshot | ||
| ) |
Populate a snapshot of the most recent frame statistics.
| profiler | Profiler instance. | |
| [out] | out_snapshot | Destination snapshot structure. |