KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Low-level performance counter API. More...
#include <stdint.h>
#include <stdbool.h>
#include <sys/cdefs.h>
Go to the source code of this file.
Functions | |
bool | perf_cntr_config (perf_cntr_t counter, perf_cntr_event_t *event_mode, perf_cntr_clock_t *clock_type) |
Get a performance counter's settings. | |
void | perf_cntr_start (perf_cntr_t counter, perf_cntr_event_t event_mode, perf_cntr_clock_t clock_type) |
Start a performance counter. | |
void | perf_cntr_stop (perf_cntr_t counter) |
Stop a performance counter. | |
void | perf_cntr_resume (perf_cntr_t counter) |
Resume a performance counter. | |
void | perf_cntr_clear (perf_cntr_t counter) |
Clear a performance counter. | |
uint64_t | perf_cntr_count (perf_cntr_t counter) |
Obtain the count of a performance counter. | |
void | perf_cntr_timer_enable (void) |
Enable the nanosecond timer. | |
void | perf_cntr_timer_disable (void) |
Disable the nanosecond timer. | |
bool | perf_cntr_timer_enabled (void) |
Check whether the nanosecond timer is enabled. | |
uint64_t | perf_cntr_timer_ns (void) |
Gets elapsed CPU time (in nanoseconds) | |
Low-level performance counter API.
This file contains the low-level driver for interacting with and utilizing the SH4's two Performance Counters, which are primarily used for profiling and performance tuning.