Thread overview | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 13, 2020 Tracing D Applications | ||||
---|---|---|---|---|
| ||||
This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools. Blog: https://dlang.org/blog/2020/03/13/tracing-d-applications/ Reddit: https://www.reddit.com/r/programming/comments/fi4qfw/tracing_d_applications/ |
March 13, 2020 Re: Tracing D Applications | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On Friday, 13 March 2020 at 19:00:01 UTC, Mike Parker wrote: > This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools. > > Blog: > https://dlang.org/blog/2020/03/13/tracing-d-applications/ > > Reddit: > https://www.reddit.com/r/programming/comments/fi4qfw/tracing_d_applications/ Thanks! Another option is to leverage LLVM niceties via LDC's XRay support (https://github.com/ldc-developers/ldc/pull/2465, https://llvm.org/docs/XRay.html). |
March 14, 2020 Re: Tracing D Applications | ||||
---|---|---|---|---|
| ||||
Posted in reply to kinke | On Friday, 13 March 2020 at 21:41:44 UTC, kinke wrote: > On Friday, 13 March 2020 at 19:00:01 UTC, Mike Parker wrote: >> This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools. >> >> Blog: >> https://dlang.org/blog/2020/03/13/tracing-d-applications/ >> >> Reddit: >> https://www.reddit.com/r/programming/comments/fi4qfw/tracing_d_applications/ > > Thanks! Another option is to leverage LLVM niceties via LDC's XRay support (https://github.com/ldc-developers/ldc/pull/2465, https://llvm.org/docs/XRay.html). Although I added XRay support in LDC, I've never actually used it because it was not available on macOS at the time. Would be very interested in hearing people's experiences. Another option is `-finstrument-functions` (LDC, and probably GDC too): see e.g. http://hacktalks.blogspot.com/2013/08/gcc-instrument-functions.html and https://youtu.be/LNav5qvyK7I -Johan |
March 15, 2020 Re: Tracing D Applications | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On Friday, 13 March 2020 at 19:00:01 UTC, Mike Parker wrote:
> This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools.
>
> Blog:
> https://dlang.org/blog/2020/03/13/tracing-d-applications/
>
> Reddit:
> https://www.reddit.com/r/programming/comments/fi4qfw/tracing_d_applications/
doesn't load here :/
|
March 15, 2020 Re: Tracing D Applications | ||||
---|---|---|---|---|
| ||||
Posted in reply to kinke | 14.03.2020 00:41, kinke пишет: > On Friday, 13 March 2020 at 19:00:01 UTC, Mike Parker wrote: >> This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools. >> >> Blog: >> https://dlang.org/blog/2020/03/13/tracing-d-applications/ >> >> Reddit: >> https://www.reddit.com/r/programming/comments/fi4qfw/tracing_d_applications/ >> > > Thanks! Another option is to leverage LLVM niceties via LDC's XRay support (https://github.com/ldc-developers/ldc/pull/2465, https://llvm.org/docs/XRay.html). https://github.com/drug007/tracing_post/issues/1 |
March 15, 2020 Re: Tracing D Applications | ||||
---|---|---|---|---|
| ||||
Posted in reply to WebFreak001 | 15.03.2020 03:19, WebFreak001 пишет:
> On Friday, 13 March 2020 at 19:00:01 UTC, Mike Parker wrote:
>> This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools.
>>
>> Blog:
>> https://dlang.org/blog/2020/03/13/tracing-d-applications/
>>
>> Reddit:
>> https://www.reddit.com/r/programming/comments/fi4qfw/tracing_d_applications/
>>
>
> doesn't load here :/
What do you mean?
|
March 16, 2020 Re: Tracing D Applications | ||||
---|---|---|---|---|
| ||||
Posted in reply to drug | On Sunday, 15 March 2020 at 09:47:52 UTC, drug wrote: > 15.03.2020 03:19, WebFreak001 пишет: >> On Friday, 13 March 2020 at 19:00:01 UTC, Mike Parker wrote: >>> This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools. >>> >>> Blog: >>> https://dlang.org/blog/2020/03/13/tracing-d-applications/ >>> >>> Reddit: >>> https://www.reddit.com/r/programming/comments/fi4qfw/tracing_d_applications/ >>> >> >> doesn't load here :/ > > What do you mean? blog page loads forever and then times out just like in https://forum.dlang.org/thread/vyzzptpssxqbfveebxrp@forum.dlang.org |
March 17, 2020 Re: Tracing D Applications | ||||
---|---|---|---|---|
| ||||
Posted in reply to WebFreak001 | On 3/16/20 9:04 PM, WebFreak001 wrote: > On Sunday, 15 March 2020 at 09:47:52 UTC, drug wrote: >> 15.03.2020 03:19, WebFreak001 пишет: >>> On Friday, 13 March 2020 at 19:00:01 UTC, Mike Parker wrote: >>>> This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools. >>>> >>>> Blog: >>>> https://dlang.org/blog/2020/03/13/tracing-d-applications/ >>>> >>>> Reddit: >>>> https://www.reddit.com/r/programming/comments/fi4qfw/tracing_d_applications/ >>>> >>>> >>> >>> doesn't load here :/ >> >> What do you mean? > > blog page loads forever and then times out just like in https://forum.dlang.org/thread/vyzzptpssxqbfveebxrp@forum.dlang.org I see. There is a preliminary (almost final) version https://github.com/drug007/tracing_post |
March 17, 2020 Re: Tracing D Applications | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On 3/13/20 3:00 PM, Mike Parker wrote:
> This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools.
>
> Blog:
> https://dlang.org/blog/2020/03/13/tracing-d-applications/
>
> Reddit:
> https://www.reddit.com/r/programming/comments/fi4qfw/tracing_d_applications/
>
Just got around to reading this. What an awesome article! I had no idea of these options. I always reach for good-old printf.
Would it make sense to put some mixins into Phobos/druntime for use in tracing, at least for the debug version of the library? Or have a parallel traceable version of the library?
-Steve
|
March 17, 2020 Re: Tracing D Applications | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On 3/13/20 3:00 PM, Mike Parker wrote:
> This post by Alexandr Druzhinin shows three different approaches to tracing, using writef and external tools.
>
> Blog:
> https://dlang.org/blog/2020/03/13/tracing-d-applications/
>
> Reddit:
> https://www.reddit.com/r/programming/comments/fi4qfw/tracing_d_applications/
>
typo:
sorta of => sort of
-Steve
|
Copyright © 1999-2021 by the D Language Foundation