profiler issues: time overflows, conversion to seconds, gui/html output

timotheecour thelastmammoth at gmail.com
Wed Aug 22 20:52:19 PDT 2012


I'm not sure how to interpret trace.log from running dmd with 
-profile (on osx at least).
I inserted a stopwatch inside main, which gave 35.8 seconds.

1) How to convert times in trace.log to seconds? Eg, how to get 
35.8 seconds using the numbers below?

here's the first last line for times:
======== Timer Is 3579545 Ticks/Sec, Times are in Microsecs 
========

   Num          Tree        Func        Per
   Calls        Time        Time        Call

here's the last line:
  1 16317420002   -43499161   -43499161     _Dmain


2) Why are there negative numbers? (seems like an overflow 
problem, but the total time is quite small so it seems the scale 
is wrong).


3) are there any tools to visualize trace.log (eg gui, html or 
otherwise)?
The only ones I found were outdated (ptrace.d for tango and 
profiled.d for D1)



More information about the Digitalmars-d mailing list