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.

Data Structures

struct  perf_monitor
 /cond More...
 

Macros

#define __perf_monitor(f, l)
 
#define _perf_monitor(f, l)
 
#define perf_monitor()
 /endcond
 

Functions

void __stop_perf_monitor (struct perf_monitor **monitor)
 
struct perf_monitor__start_perf_monitor (struct perf_monitor *monitor)
 
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