KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
perf_monitor.h File Reference

Low-level performance monitor. More...

#include <sys/cdefs.h>
#include <dc/perfctr.h>
#include <stdint.h>
#include <stdio.h>

Go to the source code of this file.

Macros

#define perf_monitor()   _perf_monitor(__func__, __LINE__)
 Register a performance monitor in the current functional block.
 
#define perf_monitor_if(tst)   _perf_monitor_if(__func__, __LINE__, tst)
 Register a performance monitor for branch likeliness analysis.
 

Functions

void perf_monitor_init (perf_cntr_event_t event1, perf_cntr_event_t event2)
 Initialize the performance monitor system.
 
void perf_monitor_exit (void)
 De-initialize the performance monitor system.
 
void perf_monitor_print (FILE *f)
 Print statistics about the probe points to the given file descriptor.
 

Detailed Description

Low-level performance monitor.

This file contains an API that can be used to monitor specific performance events in one or several functional blocks.

Author
Paul Cercueil