[Checkins] SVN: z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/ Adding resources and zpt

Daniel Blackburn blackburnd at gmail.com
Wed Nov 10 06:16:16 EST 2010


Log message for revision 118315:
  Adding resources and zpt

Changed:
  A   z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/resources/
  A   z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/resources/history/
  A   z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/resources/history/keep.txt
  A   z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/resources/keep.txt
  A   z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/
  A   z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/debug.css
  A   z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/ref_common_count.pt
  A   z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/ref_count.pt
  A   z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/start.pt

-=-
Added: z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/resources/history/keep.txt
===================================================================
--- z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/resources/history/keep.txt	                        (rev 0)
+++ z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/resources/history/keep.txt	2010-11-10 11:16:15 UTC (rev 118315)
@@ -0,0 +1 @@
+#pass
\ No newline at end of file

Added: z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/resources/keep.txt
===================================================================
--- z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/resources/keep.txt	                        (rev 0)
+++ z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/resources/keep.txt	2010-11-10 11:16:15 UTC (rev 118315)
@@ -0,0 +1 @@
+#pass
\ No newline at end of file

Added: z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/debug.css
===================================================================
--- z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/debug.css	                        (rev 0)
+++ z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/debug.css	2010-11-10 11:16:15 UTC (rev 118315)
@@ -0,0 +1,209 @@
+/* Normalize */
+
+body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td {
+  margin : 0;
+  padding : 0;
+  font-size: 100%;
+  font-weight: normal;
+
+}
+
+/* remove borders from tables */
+
+table {
+  border-collapse : collapse;
+  border-spacing : 0;
+}
+
+/* start formatting the page */
+
+body {
+    padding: 5px;
+    font-family:Arial,sans-serif;
+    font-size:small;
+    margin: 20px;
+}
+
+.debug_body {
+    margin-left: 3em;
+}
+
+.debug_table {
+    margin-left: 40px;
+}
+
+h1 {
+    font-size: 140%;
+    font-weight: bold;
+    padding: 10px 20px;
+    width: 60%;
+    border-bottom: 1px solid #ccc;
+}
+
+.just_border { 
+    padding: 0px 20px;
+}
+
+h2 {
+    font-size: 110%;
+    font-weight: bold;
+    padding: 5px 25px;
+}
+
+h3 {
+    font-weight: bold;
+    text-decoration: underline;
+ }
+
+table {
+    border: 1px solid #999;
+    width: 60%;
+}
+
+table td {
+    text-align : left;
+    vertical-align : middle;
+    font-size: 90%;
+    padding: 2px 5px;
+}
+
+* html table {  /* for Internet Explorer */
+  font-size: 120%; 
+}
+
+table th {
+    background-color : #ccc;
+    font-size: 90%; 
+    font-weight: bolder;
+    padding:5px;
+    
+}
+
+table th a {
+    text-decoration:none;
+}
+
+table th a:visited {
+    color: blue;
+}
+
+.viewname {
+    font-weight : bold;
+}
+
+.view_perm {
+    padding-left: 2em;
+    text-align: left;
+}
+
+.viewObj {
+    font-weight : bold;
+}
+
+
+.view{
+    text-align : left;
+}
+
+.permission {
+    font-style:italic;
+}
+
+.odd {
+    padding-left: 3em;
+    background-color: #ddd;
+}
+
+.even {
+    padding-left: 3em;
+}
+
+.contentList {
+    margin-left: 1em;
+}
+.contextList {
+    text-decoration: underline;
+    margin-left: 1em;
+}
+
+
+.contextListIndent {
+    margin-left: 3em;
+}
+
+.finalPermissions {
+    margin-left: 1em;
+}
+
+.sectionInfo {
+    padding-top: 5px;
+    padding-left: 5px;
+    font-size: 85%;
+    font-style:italic;
+    color: grey;
+}
+
+.legend {
+   font-style: italic;
+   /*margin-left: 25px;*/
+   font-size: 85%;
+   margin-bottom: 2em;
+
+}
+
+.description {
+    margin-right: 35%;
+    margin-left: 3em;
+}
+
+.top_nav {
+    margin-top: 5px;
+    margin-left: 38px;
+    margin-bottom: 10px;
+}
+
+.top_nav_val {
+    font-weight: bold;
+    font-size: 115%;
+}
+
+
+.headings {
+    background-color: #999;
+}
+
+.sub_heading {
+   font-size: 115%;
+   color: grey;
+   margin-bottom: 8px;
+   /*margin-left: 25px;*/
+
+}
+
+.tree{
+   float: left;
+   padding: 10px 20px;
+   margin-bottom: 8px;
+   margin-right: 8px;
+   border: 1px solid #ccc;
+
+}
+.context {
+   float: left;
+   padding: 10px 20px;
+   margin-bottom: 8px;
+   margin-right: 8px;
+   border: 1px solid #ccc;
+
+}
+
+
+/* reference link colors */
+.refs {
+  color:green;
+}
+
+.backrefs {
+  font-weight:bold;
+  color:red;
+}

Added: z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/ref_common_count.pt
===================================================================
--- z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/ref_common_count.pt	                        (rev 0)
+++ z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/ref_common_count.pt	2010-11-10 11:16:15 UTC (rev 118315)
@@ -0,0 +1,39 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
+      xmlns:tal="http://xml.zope.org/namespaces/tal"
+      xmlns:metal="http://xml.zope.org/namespaces/metal"
+      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
+      lang="en"
+      i18n:domain="hc.debug.core">
+
+<body>
+
+
+
+        <div class="title">
+            <h1>Reference Count</h1>
+
+        </div>
+
+        <div>
+            <p>
+                <table summary="Most common in garbage" width="100%">
+                    <thead>
+                        <tr>
+                            <th scope="col" class="date" nowrap="nowrap">Ref Count</th>
+                            <th scope="col" class="actor">Object</th>
+                        </tr>
+                    </thead>
+            
+                    <tbody>
+                            <metal:block tal:repeat="pair view/pairs">
+                             <tr tal:define="oddrow repeat/pair/odd">
+                                 <td nowrap="nowrap" valign="top" tal:content="pair/refcount|nothing"/>
+                                 <td nowrap="nowrap" valign="top" tal:content="pair/name|nothing"/>
+                              </tr>
+                            </metal:block>
+                    </tbody>
+                </table>
+
+                <a class="button" href="javascript:history.back(1)" class="back-link">Cancel</a>
+
+</html>

Added: z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/ref_count.pt
===================================================================
--- z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/ref_count.pt	                        (rev 0)
+++ z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/ref_count.pt	2010-11-10 11:16:15 UTC (rev 118315)
@@ -0,0 +1,57 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
+      xmlns:tal="http://xml.zope.org/namespaces/tal"
+      xmlns:metal="http://xml.zope.org/namespaces/metal"
+      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
+      lang="en"
+      i18n:domain="hc.debug.core">
+<body>
+<head>
+      <link type="text/css" rel="stylesheet" media="all" href=""
+           tal:attributes="href string:++resource++debug.css"/>
+</head>
+
+        <metal:block tal:condition="context/title|nothing">
+            <br/><a tal:attributes="href string:."
+                   tal:content="string: Back to ${context/title}"/>
+        </metal:block>
+
+        <div class="title">
+            <h1>Reference Count</h1>
+
+        </div>
+
+        <div class="debug_table">
+            <p class="debug_body description">
+            Garbage Container Objects: <span tal:replace="view/garbage_containing"/><br/>
+            Garbage Watching Objects: <span tal:replace="view/garbage_watching"/><br/>
+            Total Reference Count From Modules: <span tal:replace="view/total_ref_count"/><br/>
+        
+                <table summary="Module Ref Counts" width="100%" class="debug_table">
+                    <thead>
+                        <tr>
+                            <th scope="col" class="date" nowrap="nowrap">Ref Count</th>
+                            <th scope="col" class="actor">Module</th>
+                            <th scope="col" class="actor">&nbsp;</th>
+                        </tr>
+                    </thead>
+            
+                    <tbody>
+                            <metal:block tal:repeat="pair view/pairs"
+                                         tal:attributes="class string:even">
+                             <tr tal:define="oddrow repeat/pair/odd">
+                                 <td nowrap="nowrap" valign="top" tal:content="pair/refcount|nothing"/>
+                                 <td nowrap="nowrap" valign="top" tal:content="pair/name|nothing"/>
+                                 <td nowrap="nowrap">
+                                    <a tal:attributes="href string:./view_backref?name=${pair/name}"
+                                       tal:content="string: backrefs"/>
+                                    <a tal:attributes="href string:./view_ref?name=${pair/name}"
+                                       tal:content="string: refs"/>
+                                 </td>
+                              </tr>
+                            </metal:block>
+                    </tbody>
+                </table>
+
+                <a class="button" href="javascript:history.back(1)" class="back-link">Cancel</a>
+
+</html>

Added: z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/start.pt
===================================================================
--- z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/start.pt	                        (rev 0)
+++ z3c.memhunt.objgraph/trunk/z3c/memhunt/objgraph/browser/zpt/start.pt	2010-11-10 11:16:15 UTC (rev 118315)
@@ -0,0 +1,83 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
+      xmlns:tal="http://xml.zope.org/namespaces/tal"
+      xmlns:metal="http://xml.zope.org/namespaces/metal"
+      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
+      lang="en"
+      i18n:domain="z3c.memhunt.objgraph">
+<body>
+<head>
+      <link type="text/css" rel="stylesheet" media="all" href=""
+           tal:attributes="href string:++resource++debug.css"/>
+</head>
+    <div class="debug_table">
+        <metal:block tal:condition="context/title|nothing">
+            <br/><a tal:attributes="href string:."
+                   tal:content="string: Back to ${context/title}"/>
+        </metal:block>
+
+       <h1>Memory and Reference Counting Tools</h1>
+
+       <p class="description"> 
+            This tool is split into two logical tools. First is the Dependancy reference graphs.
+            Second is the memory introspection tools which use the guppy library for intelligence.
+       </p>
+
+           <br/>
+            <h3 class="sub_heading"> Dependancy Graph Views </h3>
+            <ul class="debug_body">
+                <li>
+                <a tal:attributes="href string:./context_refs.png"
+                   tal:content="string:This Context's Reference Graph"/>
+                </li>
+                
+                <li>
+                <a tal:attributes="href string:context_backrefs.png"
+                   tal:content="string:This Context's Back-Reference Graph"/>
+                </li>
+            
+                <li>
+                <a tal:attributes="href string:ref_count"
+                   tal:content="string: View Modules Ref-Counts"/>
+                </li>
+
+                <li>
+                <a tal:attributes="href string:ref_common_count"
+                   tal:content="string: View Most Common Objects in Garbage"/>
+                </li>
+
+            </ul>
+           <br/>
+            <h3 class="sub_heading"> Memory Introspection Views </h3>
+            <ul class="debug_body">
+                <li>
+                <a tal:attributes="href string:memory"
+                   tal:content="string: View Memory"/>
+                </li>
+
+                <li>
+                <a tal:attributes="href string:relative_memory"
+                   tal:content="string: View Relative Memory"/>
+                </li>
+
+
+                <li>
+                <a tal:attributes="href string:traverse_relative_memory"
+                   tal:content="string: View Traversed Relative Memory"/>
+                </li>
+
+
+                <li>
+                <a tal:attributes="href string:by_referrers"
+                   tal:content="string: View memory by Referrers"/>
+                </li>
+
+                <li>
+                <a tal:attributes="href string:get_biggest_offender"
+                   tal:content="string: View Biggest Memory Offender"/>
+                </li>
+
+            </ul>
+
+    </div>
+</body>
+</html>



More information about the checkins mailing list