Profiling

drug drug2004 at bk.ru
Wed Feb 10 12:36:36 UTC 2021


On 2/10/21 2:52 PM, JG wrote:
> On Tuesday, 9 February 2021 at 18:33:16 UTC, drug wrote:
>> On Tuesday, 9 February 2021 at 07:45:13 UTC, 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
>>
>> I'm guessing only but it looks like slurp is used to read text output 
>> but the format used does not correspond to the real data format.
> 
> Thanks for the suggestions. However, I would prefer not to spend time 
> trying to debug d-profile-viewer at the moment.
> 
> As a follow up question I would like to know what tool people use to 
> profile d programs?

Could you provide trace.log that I can take a look? I have no much time 
but some bugs can be fixed fast. It would be ideal if you create the 
issue in the package repo and provides the test case. Also there is 
probability the author will fix this.


More information about the Digitalmars-d-learn mailing list