Perf_start_measuring(), Perf_stop_measuring(), Perf_begin() – Altera Embedded Peripherals IP User Manual
Page 307: Perf_start_measuring() -7, Perf_stop_measuring() -7, Perf_begin() -7

Returns:
—
Description:
Macro
PERF_RESET()
stops and disables all counters, resetting them to 0.
PERF_START_MEASURING()
Prototype:
PERF_START_MEASURING(p)
Thread-safe:
Yes.
Available
from ISR:
Yes.
Include:
Parameters:
p
—performance counter core base address.
Returns:
—
Description:
Macro
PERF_START_MEASURING()
starts the global counter, enabling the
performance counter core. The behavior of individual section counters is
controlled by
PERF_BEGIN()
and
PERF_END()
.
PERF_START_MEASURING()
defines the start of a global event, and increments the global event counter. This
macro is a single write to the performance counter core.
PERF_STOP_MEASURING()
Prototype:
PERF_STOP_MEASURING(p)
Thread-safe:
Yes.
Available
from ISR:
Yes.
Include:
Parameters:
p
—performance counter core base address.
Returns:
—
Description:
Macro
PERF_STOP_MEASURING()
stops the global counter, disabling the perform‐
ance counter core. This macro is a single write to the performance counter core.
PERF_BEGIN()
Prototype:
PERF_BEGIN(p,n)
Thread-safe:
Yes.
Available
from ISR:
Yes.
Include:
UG-01085
2014.24.07
PERF_START_MEASURING()
31-7
Performance Counter Core
Altera Corporation