suppress reporting stats for functions not called in most recent

reporting period.
This commit is contained in:
gardners 2012-06-26 09:27:45 +09:30
parent c5d89a043d
commit 83d1846154

View File

@ -373,7 +373,8 @@ int fd_showstats()
fd_showstat(&total,&total,"TOTAL");
INFOF("servald function time statistics:");
for(i=0;i<func_count;i++)
fd_showstat(&total,&called_funcs[i],called_func_names[i]);
if (called_funcs[i].calls)
fd_showstat(&total,&called_funcs[i],called_func_names[i]);
return 0;
}