Changes

Jump to: navigation, search

DTrace 0.1 Release

85 bytes added, 14:58, 18 October 2008
My Test Case - Above code on a website redirection
D-Trace scripts are .d files that allow the user to interact with the existing probes and do innovative things. If a programmer tends to add new probes to the Mozilla code base, they can use a script to pick up on it to make sure it was implemented and interacted properly.
With your terminal that isn't handling Mozilla Minefield, go to your mozilla home directory , create a file called js_callcount.d and paste this code into it.
<pre>#pragma D option quiet
==My Test Case - Above code on a website redirection==
Test Case:
<ol><li> Ran Minefield on first terminal. Created a profile called DTrace and used it
<li> Ran my D-Script on my second terminal.
</pre>
The probe mainly picked up on Javascript (function probe) and XML (interpreter probe) calls. But this is pretty staggering considering my test case was pretty basic, especially the number of times the XML commands were called (most likely utility functions for the Javascript). Feel free to try out your own test cases, but involving more complex things.
Why did I go wrestling themed? Well, I watch WWE Raw/Smackdown quite often, and Santino Marella is a RAW Wrestler. He is a villian using an Italian Stereotype gimmick. I find him quite entertaining to watch because of his microphone skills. Plus, I compiled this script on Thursday (where his WWE.com show - Santino's Casa is uploaded every Thursday) and finished watching it before I compiled this script.
1
edit

Navigation menu