Thread overview
dmd profiling corrupted names in trace.log?
Oct 15, 2021
Chris Katko
Oct 15, 2021
Stefan Koch
Oct 16, 2021
Chris Katko
Oct 16, 2021
Imperatorn
Oct 16, 2021
Chris Katko
Oct 16, 2021
Imperatorn
October 15, 2021

Any idea (bug?) why dmd's profiling file trace.log dumps bunches of unreadable binary characters instead of function names?

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

  Num          Tree        Func        Per
  Calls        Time        Time        Call

      5       41948       38714        7742     bool main.initialize()
   4676       37406       37406           7     �E�U
   4676        8269        8269           1     ����U
   2436       50548        3381           1     void main.display_t.draw2()
   4676        2784        2770           0     ����U
 100559        2651        2572           0     ����U
     12        1718        1708         142     ����U
   2436        1617        1616           0     void main.display_t.start_frame()
     44        1023        1023          23     ����U
   2436         927         927           0     void main.display_t.end_frame()
   9352         752         752           0     ����U
    196         679         679           3     void main.map_t.draw(main.viewport_t)
      4         349         319          79     ����U
5152952        2960         309           0
October 15, 2021

On Friday, 15 October 2021 at 09:51:39 UTC, Chris Katko wrote:

>

Any idea (bug?) why dmd's profiling file trace.log dumps bunches of unreadable binary characters instead of function names?

[...]

have you removed the previous trace.log in the folder you executed the binary in?

October 16, 2021

On Friday, 15 October 2021 at 10:08:21 UTC, Stefan Koch wrote:

>

On Friday, 15 October 2021 at 09:51:39 UTC, Chris Katko wrote:

>

Any idea (bug?) why dmd's profiling file trace.log dumps bunches of unreadable binary characters instead of function names?

[...]

have you removed the previous trace.log in the folder you executed the binary in?

You have GOT to be kidding me! I'm supposed to know to delete the log file every time I run the program (or is it "change" the program?) even though there's zero mention of that in the man page for dmd? There's no mention that the logs are additive!

https://dlang.org/dmd-windows.html

Is profile=gc additive? Who knows! Certainly not the documentation.

October 16, 2021

On Saturday, 16 October 2021 at 07:20:47 UTC, Chris Katko wrote:

>

On Friday, 15 October 2021 at 10:08:21 UTC, Stefan Koch wrote:

>

On Friday, 15 October 2021 at 09:51:39 UTC, Chris Katko wrote:

>

Any idea (bug?) why dmd's profiling file trace.log dumps bunches of unreadable binary characters instead of function names?

[...]

have you removed the previous trace.log in the folder you executed the binary in?

You have GOT to be kidding me! I'm supposed to know to delete the log file every time I run the program (or is it "change" the program?) even though there's zero mention of that in the man page for dmd? There's no mention that the logs are additive!

https://dlang.org/dmd-windows.html

Is profile=gc additive? Who knows! Certainly not the documentation.

Bro, he just asked a question 😅

October 16, 2021

On Saturday, 16 October 2021 at 09:26:57 UTC, Imperatorn wrote:

>

On Saturday, 16 October 2021 at 07:20:47 UTC, Chris Katko wrote:

>

On Friday, 15 October 2021 at 10:08:21 UTC, Stefan Koch wrote:

>

On Friday, 15 October 2021 at 09:51:39 UTC, Chris Katko wrote:

>

[...]

have you removed the previous trace.log in the folder you executed the binary in?

You have GOT to be kidding me! I'm supposed to know to delete the log file every time I run the program (or is it "change" the program?) even though there's zero mention of that in the man page for dmd? There's no mention that the logs are additive!

https://dlang.org/dmd-windows.html

Is profile=gc additive? Who knows! Certainly not the documentation.

Bro, he just asked a question 😅

I'm not mad at him, to be clear. I'm mad at the constant barrage of gotchas from lack of proper documentation.

October 16, 2021

On Saturday, 16 October 2021 at 09:52:07 UTC, Chris Katko wrote:

>

On Saturday, 16 October 2021 at 09:26:57 UTC, Imperatorn wrote:

>

On Saturday, 16 October 2021 at 07:20:47 UTC, Chris Katko wrote:

>

On Friday, 15 October 2021 at 10:08:21 UTC, Stefan Koch wrote:

>

[...]

You have GOT to be kidding me! I'm supposed to know to delete the log file every time I run the program (or is it "change" the program?) even though there's zero mention of that in the man page for dmd? There's no mention that the logs are additive!

https://dlang.org/dmd-windows.html

Is profile=gc additive? Who knows! Certainly not the documentation.

Bro, he just asked a question 😅

I'm not mad at him, to be clear. I'm mad at the constant barrage of gotchas from lack of proper documentation.

Feel ya