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 - The download and get involved page for OpenSolaris Mozilla-based projects is online

Apr 6, 11:00 PM

The download and get involved page for OpenSolaris Mozilla-based projects is online . This page highlights all the latest contributed builds (Firefox/Thunderbird etc.) come from Sun Beijing Desktop ...

jmr - PackageManager getting Flash

Mar 31, 7:16 AM

How can I get Flash for OpenSolaris? Well if you are running one of the latest development builds for OpenSolaris which will be released as OpenSolaris 2009.06 and you'd like to get Flash on your ...

jmr - PackageManager for 2009.06

Mar 26, 6:45 AM

Package Manger What's Up for 2009.06 Well we have been busy over the past 6 months since the 2008.11 release and have added plenty of goodies. Michal will blog about new performance improvements and ...

pengyang - OpenSolaris ships Firefox 3.1b3 with Open Video/Audio support

Mar 25, 1:41 AM

Firefox 3.1 beta 3 has been integrated into OpenSolaris development build. The users for OpenSolaris 2009.06 will be able to enjoy a lot of new features bring alone. Besides all the improvements for ...

pengyang - LXDE (Lightweight X11 Desktop Environment) on OpenSolaris

Mar 18, 3:09 AM

Just did the initial porting of LXDE to OpenSolaris . It's running pretty well on my box here as you can tell from the screenshot. Since it's a GTK based desktop environment, some of the applications ...