renaming for static/sizeme_graph.pl
Tim Bunce [Tue, 2 Oct 2012 16:27:42 +0000 (17:27 +0100)]
SizeMe.xs
static/public/excanvas.js [moved from static/excanvas.js with 100% similarity]
static/public/jit-yc.js [moved from static/jit-yc.js with 100% similarity]
static/public/treemap.js [moved from static/public/dmemtreemap.js with 100% similarity]
static/sizeme_graph.pl [moved from static/dmemview.pl with 96% similarity]

index 2b440b5..cdedaf7 100644 (file)
--- 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;
 
similarity index 100%
rename from static/excanvas.js
rename to static/public/excanvas.js
similarity index 100%
rename from static/jit-yc.js
rename to static/public/jit-yc.js
similarity index 96%
rename from static/dmemview.pl
rename to static/sizeme_graph.pl
index 8cc4720..0215d31 100755 (executable)
@@ -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!
 <!--[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();">