debugprint: add profiling information #2251

I added <time> and <% time> but It's not trivial to me to how to calculate <total time> and <% total time>