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 - Update: Firefox 3.0 contributed builds for Solaris 10

Jul 3, 8:36 PM

Thanks all for the feedback. The updated version of Firefox 3.0 contributed builds for Solaris 10 have been uploaded to the Mozilla ftp server: pkgadd tarball . There are some changes to these builds ...

pengyang - Q/A: the Firefox 3.0 builds for Solaris 10

Jun 29, 7:25 AM

Got some questions about the Firefox 3.0 builds for Solaris 10. I think it's good to start a new post to explain it a little bit. Would like to give some updates for the builds first. The tar ball ...

pengyang - Enjoy Firefox 3.0 on Solaris 10

Jun 24, 8:32 AM

The Firefox 3.0 contributed builds are finally available for Solaris 10 now( x86 and SPARC ), about one week after its official release. Also what's new and a nice flash for the new features ...

pengyang - Songbird 0.6 on OpenSolaris is here!

Jun 19, 2:39 AM

With the help from Songbird guys(preed specifically to make the Songbird 0.6 tag), Songbird 0.6 release builds are available for OpenSolaris. Among all the new features , I like SHOUTcase the best. ...

pengyang - My laptop finally starts to sing

Jun 16, 8:55 AM

Thanks a lot for Minskey Guo's audiohd driver for OpenSolaris. My laptop finally starts to sing with Songbird on OpenSolaris 2008.05 . Yeah!! I live without sound for a long time as I have a desktop ...