1 .TH js_objgc.d 1m "$Date:: 2007-10-03 #$" "USER COMMANDS"
3 js_objgc.d - trace JavaScript Object GC using DTrace.
8 This traces JavaScript activity from all running browers on the system
9 which support the JavaScript DTrace provider.
11 This script provides information on which objects are not being garbage
12 collected, an issue which causes the browser to steadily leak memory.
13 We trace object creation (+1) and destruction (-1), and provide a
14 summary each second of the running tally of the object class and
15 originating filename. If over the period of several minutes an object
16 type is still steadily increasing, then that would be of interest.
17 Be patient, depending on the rate of object creation it can take over
18 ten minutes for garbage collect to kick in.
22 Evolving - uses the DTrace JavaScript provider, which may change
23 as additional features are introduced. Check JavaScript/Readme
24 to see what version these scripts are based on.
34 Filename that contained the function
37 Class to which this new object belongs
40 Object entropy (positive == uncollected)
43 \- it is possible that you will see negative entropy. That happens
44 when you begin tracing after some objects have already been created,
45 and then trace their destruction.
46 \- there are other Things that GC handles, other than Objects; extra
47 probes can be added to trace them, should the need arise.
50 See the DTraceToolkit for further documentation under the
51 Examples, Notes and Docs directories. The example files may be
52 especially useful as they aim to demonstrate how to interpret
55 js_objgc.d will run until Ctrl-C is hit.