93
edits
(→Membrane Objects: added docs for membrane.iteratorObject) |
(added stack frame/debugging function docs) |
||
| Line 159: | Line 159: | ||
Returns a JSON-able object containing a mapping of names to numeric object IDs; this is the "mirror" of the ''namedObjects'' parameter passed to ''nsJetpack.''<code>profileMemory()</code> in the memory profiling runtime. | Returns a JSON-able object containing a mapping of names to numeric object IDs; this is the "mirror" of the ''namedObjects'' parameter passed to ''nsJetpack.''<code>profileMemory()</code> in the memory profiling runtime. | ||
''' | '''stack'''() | ||
Returns a [[Labs/Jetpack/Binary_Components#StackFrame_Objects|StackFrame]] object corresponding to the current state of the memory profiling runtime's stack. | |||
'''lastException''' | |||
This global variable contains a reference to the most recently-thrown exception in the memory profiling runtime. | |||
'''lastExceptionTraceback''' | |||
This global variable contains a reference to the [[Labs/Jetpack/Binary_Components#StackFrame_Objects|StackFrame]] of the most recently-thrown exception in the memory profiling runtime. | |||
=== StackFrame Objects === | |||
<code>StackFrame.</code>'''filename''' | |||
The filename of the stack frame. | |||
<code>StackFrame.</code>'''lineNo''' | |||
The line number of the stack frame. | |||
<code>StackFrame.</code>'''functionName''' | |||
The function in which the stack frame is taking place. | |||
<code>StackFrame.</code>'''functionObject''' | |||
A reference to the function object in which the stack frame is taking place. | |||
<code>StackFrame.</code>'''scopeChain''' | |||
A reference to the scope chain of the stack frame. | |||
<code>StackFrame.</code>'''caller''' | |||
A reference to the <code>StackFrame</code> of this stack frame's caller. If this stack frame doesn't have a caller, the property is <code>undefined</code>. | |||
=== ServerSocket Objects === | === ServerSocket Objects === | ||
edits