/* by this point we should have visited all the SVs
* so now we'll run through all the SVs via the arenas
- * in order to find any thet we've missed for some reason.
- * Once the rest of the code is finding all the SVs then any
+ * in order to find any that we've missed for some reason.
+ * Once the rest of the code is finding ALL the SVs then any
* found here will be leaks.
*/
for (sva = PL_sv_arenaroot; sva; sva = MUTABLE_SV(SvANY(sva))) {
//warn("foo: %u", parser->ps - parser->stack);
ADD_SIZE(st, "stack_frames", parser->stack_size * sizeof(yy_stack_frame));
for (ps = parser->stack; ps <= parser->ps; ps++) {
- ADD_PRE_ATTR(st, 0, "frame", ps - parser->ps);
- sv_size(aTHX_ st, NPathLink("compcv"), (SV*)ps->compcv, TOTAL_SIZE_RECURSION);
+ if (sv_size(aTHX_ st, NPathLink("compcv"), (SV*)ps->compcv, TOTAL_SIZE_RECURSION))
+ ADD_LINK_ATTR(st, NPattr_NOTE, "i", ps - parser->ps);
}
NPathPopNode;
Needs to be run from the static/. directory.
For example:
- ./dmemview.pl daemon
+ ./sizeme_graph.pl daemon
=pod TODO
=cut
GetOptions(
- 'db=s' => \(my $opt_db = '../dmemtree.db'),
+ 'db=s' => \(my $opt_db = '../sizeme.db'),
'debug!' => \my $opt_debug,
) or exit 1;
# XXX currently uses ORLite but doesn't actually make use of it in any useful way
# should be removed and replaced with plain DBI till we have an obvious need for it
use ORLite {
- file => '../dmemtree.db',
+ file => '../sizeme.db',
package => "MemView",
#user_version => 1,
readonly => 1,
<!--[if IE]><script language="javascript" type="text/javascript" src="excanvas.js"></script><![endif]-->
<!-- JIT Library File -->
-<script language="javascript" type="text/javascript" src="jit.js"></script>
+<script language="javascript" type="text/javascript" src="jit-yc.js"></script>
<script language="javascript" type="text/javascript" src="jquery-1.8.1-min.js"></script>
<script language="javascript" type="text/javascript" src="sprintf.js"></script>
-<script language="javascript" type="text/javascript" src="dmemtreemap.js"></script>
+<script language="javascript" type="text/javascript" src="treemap.js"></script>
</head>
<body onload="init();">