Hi,
I want to use the GNU profiler to measure the time and encountered some problems. This is the configuration of my BSP editor. I setup the timer period as 1ms, and measure 1000 variables. I also enabled hal.enable_gprof. Is there any missing steps? The following is my main function, I add a return 0 to make sure the profiling works.
Thanks in advanced
int main() {
printf("Hello from Nios II!\n");
bool result = false;
init(1000);
software_bitflip_function(values, 1000, 1);
result = check_values(1000, true);
printf("check result %d\n", result);
init(1000);
custom_instr_bitflip_function(values, 1000, 2);
result = check_values(1000, true);
printf("check result %d\n", result);
return 0;
}