On Saturday, 13 January 2024 at 11:03:42 UTC, Renato wrote:
I tried to profile the D code but the profiler seems to be
broken on my OS (Mac):
I profiled it on Linux and stored [the trace.log
file](https://gist.github.com/renatoathaydes/fd8752ed81b0cf792ed7ef5aa3d68acd) on a public Gist.
I tried using the HTML viewer [recommended in the
wiki](https://wiki.dlang.org/Development_tools) but that doesn't
work... first try:
```
Running
../../../.dub/packages/d-profile-viewer/~master/d-profile-viewer/d-profile-viewer
Corrupt trace.log (can't compute ticks per second), please
re-profile and try again
```
Second try with a longer trace (the one I saved in the gist):
```
Running
../../../.dub/packages/d-profile-viewer/~master/d-profile-viewer/d-profile-viewer
std.conv.ConvException@/home/renato/dlang/ldc-1.36.0/bin/../import/std/conv.d(2533):
Unexpected '-' when converting from type char[] to type ulong
----------------
??:?
[0x55c4be9bc99e]
??:?
[0x55c4be9bc612]
??:?
[0x55c4be9de81e]
??:?
[0x55c4be9c4fbf]
/home/renato/dlang/ldc-1.36.0/bin/../import/std/conv.d:2533
[0x55c4be98ba2f]
/home/renato/dlang/ldc-1.36.0/bin/../import/std/conv.d:2002
[0x55c4be98b6fc]
/home/renato/dlang/ldc-1.36.0/bin/../import/std/conv.d:210
[0x55c4be9665ec]
../../../.dub/packages/d-profile-viewer/~master/d-profile-viewer/source/app.d:1095
[0x55c4be965e21]
../../../.dub/packages/d-profile-viewer/~master/d-profile-viewer/source/app.d:1138
[0x55c4be96698a]
??:?
[0x55c4be9c4c9c]
```
Not a great profiling experience :). Anyone has a better
suggestion to "parse" the trace file?