Altera Embedded Peripherals IP Instrukcja Użytkownika Strona 310

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 336
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 309
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
Przeglądanie stron 309
1 2 ... 305 306 307 308 309 310 311 312 313 314 315 ... 335 336

Komentarze do niniejszej Instrukcji

Brak uwag