Altera Embedded Peripherals IP Instrukcja Użytkownika Strona 308

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

Komentarze do niniejszej Instrukcji

Brak uwag