OpenSolaris

You are not signed in. Sign in or register.

OpenSolaris Project: Mozilla DTrace

View the leaders for this project
Project Observers

Endorsing communities

DTrace
Desktop

The Mozilla DTrace project is a Dynamic Tracing Framework for Mozilla, and it's a place where two significant open source communities meet – both DTrace and Mozilla.

Project Goals

  1. Design and implement a Dynamic Tracing Framework in Mozilla.
  2. Promote the inclusion of this framework into Mozilla head and make it available in OpenSolaris.
  3. Work with the Mozilla and DTrace communities to encourage the use and addition of custom dtrace probes to help improve performance, resource usage and quality of both Mozilla products and Web 2.0 applications built on top of them.
  4. Work with existing Mozilla debugging tools, such as their Javascript Debugger(venkman) and DOM Inspector.
  5. Use the project as a place to post faqs/pointers on USDT related stuff, worked examples of Mozilla performance issues, pointers to blogs and so on.

Current Status

The tracing framework has now landed in Mozilla head which allows any Mozilla developer to easily add in their own custom dtrace probes to Mozilla. As a proof of concept we've added Mozilla USDT probes to analyze page and image load times as well as DNS lookups, they are currently under review. Brendan Gregg has also inserted Javascript USDT probes to Mozilla head which uses this framework and this patch has landed.

All the gory details, including the original project proposal are in the following Mozilla bugzilla bugs:

Bugzilla 370906: Dynamic Tracing Framework for Mozilla

Status: landed in CVS head 2007-10-10.

Bugzilla 388564: Latest JavaScript provider patch

Status: landed in CVS head 2007-10-19.

Bugzilla 401697: Adding custom load URL probes to Mozilla

Status: Patch and DTrace script ready for review. Also the example output for the script might be helpful.

Downloads!

Javascript DTrace providers have been enabled for the Firefox nightly builds. They are tar'd binaries – so just download, untar, run and enjoy. They are also enabled in the latest Firefox 3.0 release builds, with package and tar provided. Compiled and uploaded by Alfred.

DTraceToolkit Includes a JavaScript subdirectory containing 14 scripts, and example output (screenshots) in the Examples subdirectory. By Brendan.

Wanna have a try?

If you're interested in this project and want to have a try, check out the link's below:

JavaScript Probes:

DTrace meets JavaScript, the original prototype demonstration by Brendan Gregg. See JavaScript Examples for some background on the various scripts. See DTraceToolkit for the latest versions of these scripts.

Mozilla Probes:

For examples of adding and working with Custom Mozilla probes for URI and Image loading as well as DNS lookup probes refer to John Rice's blog.

Discussions

If you have difficulties using our patches or any suggestions/ideas/DTrace scripts to share with us, please send feedback to dtrace dash discuss at opensolaris dot org.

Announcements

11 Oct 2007 Dynamic Tracing Framework for Mozilla landed
27 Jun 2007 The Solaris VMware images with Firefox DTrace bundled are available for download
22 Apr 2007 Firefox 3.0a3 with DTrace enabled is available for download

Blogs

pengyang - Four OpenSolaris Songbirds

May 12, 5:58 AM

Four OpenSolaris Songbirds had a nice get together in the OpenSolaris developer Summit May 2008. Steve also invited us to the Songbird office(Ken, sorry that we didn't find you in C1 :( ). It's a ...

pengyang - Integrate Songbird into Solaris

Apr 24, 3:57 AM

After some trivial changes to the source code, Songbird 0.5 has been built on Solaris SPARC b76 with Sun Studio 11 successfully by using the Songbird SFE spec. I've tried the tarball and pkgadd ...

pengyang - About Songbird package and SPEC file

Apr 10, 7:11 AM

Just some updates, the Songbird 0.5 package for OpenSolaris is available here . The spec file to make this build is checked into the SFE repository . Please note that Songbird will be installed in ...

pengyang - Songbird 0.5 build for Solaris Nevada x86

Apr 3, 10:58 AM

Songbird 0.5 build for Solaris Nevada x86 is now available for download here . It's built on Solaris Nevada b80 x86 box with Sun Studio 11. The release notes is here . Please file bug in Songbird ...

pengyang - Happy birthday, Mozilla

Apr 1, 9:22 AM

Mar. 31st 2008 is a special day for the open source world. It's the 10th anniversary for Mozilla. Ten years before, I was studying hard back to high school, trying to pass the college entrance exam ...