From: Tim Bunce Date: Tue, 2 Oct 2012 16:27:42 +0000 (+0100) Subject: renaming for static/sizeme_graph.pl X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=210580111adfe1c5c514cb8b4a2e367c5116f13c;p=p5sagit%2FDevel-Size.git renaming for static/sizeme_graph.pl --- diff --git a/SizeMe.xs b/SizeMe.xs index 2b440b5..cdedaf7 100644 --- a/SizeMe.xs +++ b/SizeMe.xs @@ -1452,8 +1452,8 @@ unseen_sv_size(pTHX_ struct state *st, pPATH) /* 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))) { @@ -1503,8 +1503,8 @@ parser_size(pTHX_ struct state *const st, pPATH, yy_parser *parser) //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; diff --git a/static/excanvas.js b/static/public/excanvas.js similarity index 100% rename from static/excanvas.js rename to static/public/excanvas.js diff --git a/static/jit-yc.js b/static/public/jit-yc.js similarity index 100% rename from static/jit-yc.js rename to static/public/jit-yc.js diff --git a/static/public/dmemtreemap.js b/static/public/treemap.js similarity index 100% rename from static/public/dmemtreemap.js rename to static/public/treemap.js diff --git a/static/dmemview.pl b/static/sizeme_graph.pl similarity index 96% rename from static/dmemview.pl rename to static/sizeme_graph.pl index 8cc4720..0215d31 100755 --- a/static/dmemview.pl +++ b/static/sizeme_graph.pl @@ -14,7 +14,7 @@ use Devel::Dwarn; Needs to be run from the static/. directory. For example: - ./dmemview.pl daemon + ./sizeme_graph.pl daemon =pod TODO @@ -33,7 +33,7 @@ use Devel::Dwarn; =cut GetOptions( - 'db=s' => \(my $opt_db = '../dmemtree.db'), + 'db=s' => \(my $opt_db = '../sizeme.db'), 'debug!' => \my $opt_debug, ) or exit 1; @@ -42,7 +42,7 @@ GetOptions( # 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, @@ -207,11 +207,11 @@ Welcome to the Mojolicious real-time web framework! - + - +