Commit b333e340 authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Update the profiling file display

parent 3f7f12c1
......@@ -273,7 +273,7 @@ void blc_command_loop_end(){
if (blc_profile_file) start_time=timer.tv_sec*1000000+timer.tv_usec;
blc_current_duration=blc_us_time_diff(&timer);
if (blc_profile_file) fprintf(blc_profile_file, "%ld\t%lld\t%lu\t\n",profile_timer.tv_sec*1000000+profile_timer.tv_usec, start_time, blc_current_duration);
if (blc_profile_file) fprintf(blc_profile_file, "%16ld\t%16lld\t%8lu\t\n",profile_timer.tv_sec*1000000+profile_timer.tv_usec, start_time, blc_current_duration);
// fflush(stderr);
//We post the semaphore usualy to say the data is ready to read
......
......@@ -467,9 +467,9 @@ void blc_program_init(int *argc, char ***argv, void (*exit_cb)(void))
if (profile){
SYSTEM_ERROR_CHECK(blc_profile_file=fopen(profile, "w"), NULL, "filename: %s", profile);
fprintf(blc_profile_file, "#start_time\tduration\t\n");
fprintf(blc_profile_file, "#start_time(µs) \texec_time(µs) \tduration(µs) \t\n");
gettimeofday(&timer, NULL);
fprintf(blc_profile_file, "%lu\t0\t0\t\n", timer.tv_sec*1000000+timer.tv_usec);
fprintf(blc_profile_file, "%16lu\t 0\t 0\t\n", timer.tv_sec*1000000+timer.tv_usec);
}
if (help){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment