ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_power_profile_region_stats_t Struct Reference

Per-region accumulator returned by ra8_power_profile_get_stats. More...

#include <ra8_power_profile.h>

Data Fields

uint64_t entries
 Total number of mark_enter calls for this region.
uint64_t exits
 Total number of mark_exit calls for this region.
uint64_t total_time_us
 Sum of (exit - enter) over all closed pairs, microseconds.
uint64_t last_enter_us
 Timestamp of the most recent unmatched mark_enter.
bool is_open
 true if a mark_enter is awaiting a mark_exit.

Detailed Description

Per-region accumulator returned by ra8_power_profile_get_stats.

Captures everything the profiler tracks per region: how many enter/exit pairs were observed, total time accumulated, and the timestamp / count of any unmatched enter events still in-flight.

Invariant
entries >= exits. The difference is the number of currently-open regions for that ID.
total_time_us only counts fully-closed regions (enter+exit pairs); open regions do not contribute.
See also
ra8_power_profile_stats_t
Since
0.1.0

Definition at line 146 of file ra8_power_profile.h.

Field Documentation

◆ entries

uint64_t ra8_power_profile_region_stats_t::entries

Total number of mark_enter calls for this region.

Definition at line 147 of file ra8_power_profile.h.

Referenced by ra8_power_profile_mark_enter().

◆ exits

uint64_t ra8_power_profile_region_stats_t::exits

Total number of mark_exit calls for this region.

Definition at line 148 of file ra8_power_profile.h.

Referenced by ra8_power_profile_mark_exit().

◆ is_open

bool ra8_power_profile_region_stats_t::is_open

true if a mark_enter is awaiting a mark_exit.

Definition at line 151 of file ra8_power_profile.h.

Referenced by ra8_power_profile_mark_enter(), and ra8_power_profile_mark_exit().

◆ last_enter_us

uint64_t ra8_power_profile_region_stats_t::last_enter_us

Timestamp of the most recent unmatched mark_enter.

Definition at line 150 of file ra8_power_profile.h.

Referenced by ra8_power_profile_mark_enter(), and ra8_power_profile_mark_exit().

◆ total_time_us

uint64_t ra8_power_profile_region_stats_t::total_time_us

Sum of (exit - enter) over all closed pairs, microseconds.

Definition at line 149 of file ra8_power_profile.h.

Referenced by pp_demo_format_line(), and ra8_power_profile_mark_exit().


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