Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

Performance counter report

$
0
0
Hey
I am running performance counter on my C code
My problem is that the report only show the result for section 1 !! (even if I change sections order it only show the first)
It should show 4 sections !
What could be the problem ?!
thnx

%%%%%%%%%%%%%%%%

perf_print_formatted_report((void *)PERFORMANCE_COUNTER_BASE,
ALT_CPU_FREQ,4,
"section_1",
"section_2",
"section_3",
"section_4");

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

--Performance Counter Report--
Total Time: 3.35524 seconds (335524437 clock-cycles)
+---------------+-----+-----------+---------------+-----------+
| Section | % | Time (sec)| Time (clocks)|Occurrences|
+---------------+-----+-----------+---------------+-----------+
|section_1 | 0.27| 0.00905| 905319| 1|
+---------------+-----+-----------+---------------+-----------+
|section_2 | 0| 0.00000| 0| 0|
+---------------+-----+-----------+---------------+-----------+
|section_3 | 0| 0.00000| 0| 0|
+---------------+-----+-----------+---------------+-----------+
|section_4 | 0| 0.00000| 0| 10175|
+---------------+-----+-----------+---------------+-----------+

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>