Perf_get_num_starts(), Alt_get_cpu_freq(), Perf_get_num_starts() -10 – Altera Embedded Peripherals IP User Manual

Page 310: Alt_get_cpu_freq() -10

Advertising
background image

Description:

Function

perf_get_section_time()

reads the raw time for a given section.

This is the time, in clock cycles, that the section has been running. This function

has the side effect of stopping the counters.

perf_get_num_starts()

Prototype:

alt_u32 perf_get_num_starts

(void* hw_base_address, int which_section)

Thread-safe:

Yes.

Available from

ISR:

Yes.

Include:

<altera_avalon_performance_counter.h>

Parameters:

hw_base_address

—performance counter core base address.

which_section

—counter section number.

Returns:

Number of counter events.

Description:

Function

perf_get_num_starts()

retrieves the number of counter events (or

times a counter has been started). If

which_section

= 0, it retrieves the number

of global events (times the performance counter core has been enabled). This

function does not stop the counters.

alt_get_cpu_freq()

Prototype:

alt_u32 alt_get_cpu_freq()

Thread-safe:

Yes.

Available from

ISR:

Yes.

Include:

<altera_avalon_performance_counter.h>

Parameters:
Returns:

CPU frequency in Hz.

Description:

Function

alt_get_cpu_freq()

returns the CPU frequency in Hz.

31-10

perf_get_num_starts()

UG-01085

2014.24.07

Altera Corporation

Performance Counter Core

Send Feedback

Advertising