feat: add tick processing/idle time diagnostics
Tracks actual tick work duration and idle/sleep time separately from tick rate, via zero-arg begin/end pairs (skele_clock_tick_begin/end, skele_clock_idle_begin/end) rather than passed timestamps, since the prior interval-between-calls approach just measured the fixed tick period, not real processing cost.
This commit is contained in:
@@ -7,9 +7,17 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern float skele_tps;
|
||||
extern uint64_t skele_tick_time_ns;
|
||||
extern uint64_t skele_tick_idle_ns;
|
||||
|
||||
void skele_clock_init(void (*on_signal)(void));
|
||||
uint64_t skele_time_ns(void);
|
||||
void skele_sleep_ns(uint64_t ns);
|
||||
void skele_clock_tick_begin(void);
|
||||
void skele_clock_tick_end(void);
|
||||
void skele_clock_idle_begin(void);
|
||||
void skele_clock_idle_end(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user