On 2/9/21 12:45 AM, JG wrote:
I was trying to profile a d program. So I ran: dub build
--build=profile. I then ran the program and it produced trace.log and
trace.def. I then ran d-profile-viewer and got the following error:
std.conv.ConvException@/home/jg/dlang/ldc-1.24.0/bin/../import/std/conv.d(2382):
Unexpected '-' when converting from type char[] to type ulong
----------------
??:? [0x564a8630fda5]
??:? [0x564a86333286]
??:? [0x564a863199fd]
/home/jg/dlang/ldc-1.24.0/bin/../import/std/conv.d:2382 [0x564a862c89a1]
/home/jg/dlang/ldc-1.24.0/bin/../import/std/conv.d:1941 [0x564a862c86cc]
/home/jg/dlang/ldc-1.24.0/bin/../import/std/conv.d:223 [0x564a862c869c]
app.d:1095 [0x564a862cdd71]
app.d:1138 [0x564a862ce7ba]
??:? [0x564a863196cb]
??:? [0x564a863195c7]
??:? [0x564a8631941d]
/home/jg/dlang/ldc-1.24.0/bin/../import/core/internal/entrypoint.d:42
[0x564a862ce7e4]
??:? __libc_start_main [0x7fd482807cb1]
Is d-profile-viewer no longer working? Or did I do something wrong?
Speaking of D profile viewer [1] we had good luck with it after fixing
the missing timestamps in the profile (I think on Linux platforms it
cannot actually measure times and so we had to rewrite the profile file
to generate some fake timestamp(s) or timings -- hazy on details).
Anyway, if you can get it working it was a nice callgraph tool
[1] https://bitbucket.org/andrewtrotman/d-profile-viewer/src/master/