www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22223] New: Profile results are zero in summery

https://issues.dlang.org/show_bug.cgi?id=22223

          Issue ID: 22223
           Summary: Profile results are zero in summery
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: uplink.coder googlemail.com

The builtin profiler results are non-informative when generated on linux.

======== Timer frequency unknown, Times are in Megaticks ========

  Num          Tree        Func        Per
  Calls        Time        Time        Call

  18443           8           8           0     _ZN3Mem7xmallocEm
  48241           6           6           0     _d_newclass
     33           7           6           0     nothrow
dmd.root.file.File.ReadResult dmd.root.file.File.read(const(ch>
  10486           2           2           0     pure nothrow  trusted
immutable(char)[] dmd.utils.itos(const(uint))
    466           2           2           0     pure nothrow  nogc  safe
dmd.astenums.TY dmd.impcnvtab.implicitConvTy1>
  67858           5           2           0     nothrow void
dmd.lexer.Lexer.scan(dmd.tokens.Token*)

As you can see most of the significant places are no longer there when you
start counting time in megaticks.

--
Aug 19