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 directoryand paste this code into it.
Create a file called js_callcount<pre>#pragma D option quiet dtrace:::BEGIN{ printf("Tracing... Hit Ctrl-C to end.d and \n");} javascript*:::function-entry{ @funcs[httpbasename(copyinstr(arg0)), copyinstr(arg2)] = count();} dtrace:::END{ printf(" %-32s %-36s %8s\n", "FILE", "FUNC", "CALLS"); printa(" %-32s %-36s %@8d\n", @funcs);}<//pastebinpre> Quiet will tell the system to post less garbage to the screen with an exception for the print functions.com/f47b7967 paste this code into it]The BEGIN component runs the functions upon running of the script. The middle will pick up 2 arguments: The