On 3/17/20 7:12 PM, Steven Schveighoffer wrote:
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

Thank you!

These mixins are trivial in fact and can be easily added/removed to DRuntime. But they are platform/OS specific (x86_64/Linux) so imo better would be to add tracing capabilities for other platforms, summarize it all and then develop some _crossplatform_ tracing framework for D.

Reply via email to