
Parameters: p—performance counter core base address.
n—counter section number. Section counter numbers start at 1. Do not refer to
counter 0 in this macro.
Returns: —
Description: Macro PERF_BEGIN() starts the timer for a code section, defining the beginning
of a section event, and incrementing the section event counter. If you
subsequently use PERF_STOP_MEASURING() and PERF_START_MEASURING() to
disable and re-enable the core, the section counter will resume. This macro is a
single write to the performance counter core.
PERF_END()
Prototype: PERF_END(p,n)
Thread-safe: Yes.
Available
from ISR:
Yes.
Include: <altera_avalon_performance_counter.h>
Parameters: p—performance counter core base address.
n—counter section number. Section counter numbers start at 1. Do not refer to
counter 0 in this macro.
Returns: —
Description: Macro PERF_END() stops timing a code section. The section counter does not
run, regardless whether the core is enabled or not. This macro is a single write to
the performance counter core.
perf_print_formatted_report()
Prototype:
int perf_print_formatted_report (
void* perf_base,
alt_u32 clock_freq_hertz,
int num_sections,
char* section_name_1, ...
char* section_name_n)
Thread-safe: No.
Available
from ISR:
No.
Include: <altera_avalon_performance_counter.h>
31-8
PERF_END()
UG-01085
2014.24.07
Altera Corporation
Performance Counter Core
Send Feedback
Comentarios a estos manuales