Microsoft ports DTrace to Windows

Here at Microsoft, we are always looking to engage with open source communities to produce better solutions for the community and our customers . One of the more useful debugging advances that have arrived in the last decade is DTrace. DTrace of course needs no introduction: it’s a dynamic tracing framework that allows an admin or developer to get a real-time look into a system either in user or kernel mode. DTrace has a C-style high level and powerful programming language that allows you to dynamically insert trace points. Using these dynamically inserted trace points, you can filter on conditions or errors, write code to analyze lock patterns, detect deadlocks, etc. ETW while powerful, is static and does not provide the ability to programmatically insert trace points at runtime.

[…]

Starting in 2016, the OpenDTrace effort began on GitHub that tried to ensure a portable implementation of DTrace for different operating systems. We decided to add support for DTrace on Windows using this OpenDTrace port.

We have created a Windows branch for “DTrace on Windows” under the OpenDTrace project on GitHub. All our changes made to support DTrace on Windows are available here. Over the next few months, we plan to work with the OpenDTrace community to merge our changes. All our source code is also available at the 3rd party sources website maintained by Microsoft.

Microsoft is continuing its effort to draw developers to Windows by implementing features developers actually seem to want, instead of trying to push in-house features that are unique to Windows that nobody is asking for.

11 Comments

  1. 2019-03-11 8:42 pm
    • 2019-03-11 11:45 pm
      • 2019-03-12 7:54 am
        • 2019-03-12 2:57 pm
          • 2019-03-12 8:51 pm
  2. 2019-03-12 11:57 pm
    • 2019-03-13 2:34 am
      • 2019-03-13 3:35 am
        • 2019-03-13 8:22 am
          • 2019-03-13 9:30 am
        • 2019-03-13 9:37 pm