Over a million developers have joined DZone.

DTrace + NetBeans IDE + Python!

· Web Dev Zone

Easily build powerful user management, authentication, and authorization into your web and mobile applications. Download this Forrester report on the new landscape of Customer Identity and Access Management, brought to you in partnership with Stormpath.

The DTrace plugin for NetBeans IDE brings the DTrace Toolkit and DTrace Chime to NetBeans on OpenSolaris. The DTrace toolkit ships with some utility scripts to talk with the Python DTrace providers.

Once you have installed the DTrace plugin, open Window > DTrace and in the Toolkit tab, choose Python:

You can see the various D scripts there. Let us take the script, 'py_calltime.d', which will collect and display the time in us taken by each function call for a particular running Python process, whose PID you can supply during the run of the script, or start a Python process.

Here is a sample output:

With the ever developing Python support for NetBeans, you can start having some fun with Python, NetBeans and DTrace.

The Web Dev Zone is brought to you by Stormpath—offering a complete, pre-built User Management API for building web and mobile applications, and APIs. Download our new whitepaper: "Build Versus Buy: Customer Identity Management for Web and Mobile Applications".

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}