This file is indexed.

/usr/share/pyshared/guppy/doc/index.html is in python-guppy 0.1.9-2ubuntu4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
   "http://www.w3.org/TR/REC-html40/strict.dtd">

<html lang=en>
 <head>
  <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
  <title> Guppy-PE: A Python Programming Environment</title>
  <link rel='stylesheet' href='css/guppy.css'></head>
 <body>
  <div>
  <div>
   <dl>
    <dt>
     <h1><big>
 Guppy-PE
</big></h1></dt>
    <dd>
     <h1> A Python Programming Environment</h1></dd></dl>
   <hr></hr>
   <table>
    <tr>
     <td><a href='#Guppy'> Guppy</a></td>
     <td> A fish swimming in Python</td></tr>
    <tr>
     <td><a href='#Heapy'> Heapy</a></td>
     <td>
 Heap Analysis Toolset
</td></tr>
    <tr>
     <td><a href='#GSL'> GSL</a></td>
     <td>
 Guppy Specification Language
</td></tr>
    <tr>
     <td><a href='#Documentation'> Documentation</a></td></tr>
    <tr>
     <td><a href='#Download'> Download</a></td></tr>
    <tr>
     <td><a href='#Credits'> Credits</a></td></tr>
    <tr>
     <td><a href='#Contact'> Contact</a></td></tr></table>
   <hr></hr></div>
  <p> This is the home page for<big><strong>
 Guppy-PE
</strong></big>
, a programming environment providing object and heap memory
sizing, profiling and analysis. It includes a prototypical specification
language that can be used to formally specify aspects of
<a href='http://www.python.org'> Python</a>
 programs and generate tests and documentation from a common
source.
</p><a name='Guppy'>
   <h2>
 Guppy
</h2></a>
  <p>
 Guppy is an umbrella package combining Heapy and GSL with support
utilities such as the Glue module that keeps things together.
</p>
  <p>
 The name guppy was chosen because I found it in a backward-dictionary
as a word ending with py and I thought it was cute enough and that it
would not so likely conflict with some other package name. It was to
be a general name since all kinds of packages should fit under this
top level name.
</p>
  <p>
 The name guppy-pe is because there was another project named guppy in
Sourceforge when I was about to register guppy. The other guppy was
not in Python, so I added<strong>
 -pe
</strong>
 which means Programming Environment. The Python package is just guppy.

</p><a name='Heapy'>
   <h2> Heapy</h2></a>
  <p>
 The aim of Heapy is to support debugging and optimization
regarding memory related issues in Python programs.
</p>
  <p>
 Such issues can make a program use too much memory, making it
slow by itself as well as slowing down an entire server, or it may
fail to run at all in a limited memory device such as a mobile phone.
</p>
  <p>
 The primary motivation for Heapy is that there has been a lack of
support for the programmer to get information about the memory usage
in Python programs. Heapy is an attempt to improve this situation. A
project with a similar intent is
<a href='http://pysizer.8325.org'> PySizer.</a></p>
  <p>
 The problem situation has a number of aspects, which I think can be
characterised, for example, as follows.
</p>
  <ul>
   <li> What data about memory and objects to get from the system.</li>
   <li> How to get that data technically.</li>
   <li> How portable to be across platforms and versions.</li>
   <li> How to process data to compress it and find structure in it.</li>
   <li> How to present the resulting information to the user.</li>
   <li>
 How to make a coherent, useful &amp; usable system of it all
that doesn't interfer too much with the target system it is analysing.
</li></ul>
  <p>
 As Heapy has evolved, with considerations like this in mind,
it currently provides the following features.
</p>
  <div>
   <h3> Data gathering</h3>
   <div>
    <ul>
     <li>
 Finds reachable and/or unreachable objects in the object
heap, and collects them into special C-implemented 'nodesets'. Can get
data about the objects such as their sizes and how they refer to each
other.
</li>
     <li>
 Uses a C library that can get data about non-standard
types from extension modules, given a function table.
</li>
     <li>
 Optionally uses multiple Python interpreters in the same
process, so one can monitor the other transparently.

</li></ul></div>
   <h3> Data processing</h3>
   <div>
    <ul>


     <li>
 Algebraic set operations, for example the set difference can
be used to extract the objects allocated after a reference point in
time.
</li>
     <li>
 Various classifications of object sets, and different
classifiers can be combined.
</li>
     <li>
 Shortest paths to a set of objects from other objects,
which can be used to find out why the objects are retained in memory.
</li>
     <li>
 Calculation of the 'dominated' set from a set of root
objects which yields the set of objects that would be deallocated if the
root objects were deallocated.
</li></ul></div>
   <h3> Presentation</h3>
   <div>
    <ul>
     <li>
 Tables where each row represents a classification of data.
</li>
     <li>
 Lists of shortest paths where the edges show the
relationships found between the underlying C objects.
</li>
     <li>
 Reference pattern, presenting a spanning tree of the
graph with sets of objects treated as a unit.
</li>
     <li>
 Limits the number of rows when presentation objects are
shown, without depending on an external pager.
</li>
     <li>
 An interactive graphical browser program can show a time
sequence of classified heap data sets as a graph together with a table
detailing the data at a specific time or the difference between two
points in time.
</li></ul></div>
   <h3> Portability aspects</h3>
   <div>
    <ul>
     <li>
 Can be used with an unmodified C Python, back to version 2.3
AFAIK. Does not depend on any external unix-specific or other
utilities.
</li>
     <li> Requires Tk if the graphical browser is to be used.</li>
     <li>
 Can not be used with Jython or other non-C Python versions.
</li></ul></div>
   <h3> System aspects</h3>
   <div>
    <ul>
     <li>
 A general 'glue' model provides a session context that
imports modules and creates objects automatically when accessed. The
glue model is not Heapy specific but is used throughout Guppy and
could be used by other packages as well.
</li>
     <li>
 The glue model makes it practical to have everything in Guppy
being dynamically allocated in a session context, so there is no need
for any global module-level variables. The modules themself are stored
as usual in sys.modules but they are not modified.
</li>
     <li>
 To be true there is one exception I come to think of but
it is really exceptional.
</li></ul></div></div>
  <p>
 Heapy has been used during development of itself and of the other
parts of Guppy. It has been used to tell how much memory the parts of
compound objects use, to see what could be worthwhile to optimize. It
was used to find a memory leak in the Heapy profile browser, and to
find out the cause, which as far as I can tell was due to a bug in a
library routine which I have reported.
</p><a name='GSL'>
   <h2> GSL</h2></a>
  <p>
 The Guppy Specification Language is an evolving specification
language. I started experimenting with this language because I felt
the need to have a way to specify documentation and tests from the
same source. GSL can describe aspects of a system, especially its API,
in a way that can be automatically converted to tests as well as to
documents. The documents generated have a formal structure for
describing the formal aspects of the specification, complemented with
descriptive text from the same source documents. A language that is
similar in intent is the
<a href='http://adl.opengroup.org/'> Assertion Definition Language</a>
.
</p>
  <p>
 Specifications written in GSL can be used for:
</p>
  <ul>
   <li>
 Generating documentation

    <p>
 Documents are generated from a combination of formally
described aspects and descriptive text. The formal aspects include
specifications of attributes and methods and their parameters and
return values. The descriptive text is written together with the
formal specifications. It can include HTML tags and attributes,
specified in the GSL dotted tree format. Output modules can convert
from the GSL form to formats such as HTML or Latex.
</p></li>
   <li>
 Generating tests

    <p>
 The tests generated can check the formal aspects of the
specification against an implementation. It can test whether objects
have the promised attributes, and then if the kind of attribute is
specified it is tested again and so on. Methods are checked to see if
they can be called with the forms of parameters specified. The return
value can then be checked up to some limit of recursion.
</p></li>
   <li>
 Resolving compatibility issues

    <p>
 A specification can be compared to a previous specification, to
tell according to formalized rules whether or not the new one is
backwards compatible with the old one, and if not, in what way they
differ. For example, according to such rules, an attribute or
parameter type can be added to a specification, but it can not be
removed. The idea is that all tests possibly generated from the old
specification should still succeed with objects conforming to the new
specification. -- A program could likely compare specifications for
compatibility automatically, but this is not yet implemented.
</p></li></ul>
  <p>
 GSL has been used to generate the documentation for this Guppy
distribution. Some part of the specification has been checked against
the implementation using the generated tests, which did reveal some
discrepancies that were subsequently corrected.
</p>
  <p>
 The documents generated by GSL use a formal syntax to describe
parameter modes. <a href='docexample.html'> This</a>
 document contains examples of such parameter descriptions and
explains what they mean.

</p><a name='Documentation'>
   <h2>
 Documentation

</h2></a>
  <p>
 Some documentation is included with the source code distribution
and can also be browsed here via the following links.

   <table class='list'>
    <tr class='even'>
     <td><a href='heapy_tutorial.html'> Getting started with Heapy</a></td>
     <td> An example of how to get started with Heapy</td></tr>
    <tr class='odd'>
     <td><a href='docexample.html'> Document example</a></td>
     <td> Explains the meaning of some aspects of the documents.</td></tr>
    <tr class='even'>
     <td><a href='guppy.html'> Guppy</a></td>
     <td> Specification of<code> guppy</code>
, the top level module.
</td></tr>
    <tr class='odd'>
     <td><a href='ProfileBrowser.html'> Profile Browser</a></td>
     <td>
 How to use the graphical heap profile browser.
</td></tr>
    <tr class='even'>
     <td><a href='pbscreen.jpg'> Screenshot</a></td>
     <td>
 Example showing the graphical heap profile browser in action.
</td></tr>
    <tr class='odd'>
     <td><a href='gsl.html'> GSL</a></td>
     <td>
 The Guppy Specification Language.
</td></tr>
    <tr class='even'>
     <td><a href='heapyc.html'> heapyc</a></td>
     <td>
 Specification of the heapyc extension module. Note that this
is an internal interface and may be subject to change.
</td></tr>
    <tr class='odd'>
     <td><a href='sets.html'> sets</a></td>
     <td>
 Specification of the interface to the
setsc extension module which contains bitsets and nodesets.</td></tr>
    <tr>
     <td id='last' colspan='5'></td></tr></table></p>
  <p>
 The following documentation is not included with the source code.

   <table class='list'>
    <tr class='odd'>
     <td><a href='http://guppy-pe.sourceforge.net/heapy-thesis.pdf'> heapy-thesis.pdf</a></td>
     <td>
 The master's thesis, &quot;Heapy: A Memory Profiler and Debugger
for Python&quot;, which presents background, design, implementation,
rationale and some use cases for Heapy (version 0.1).
</td></tr>
    <tr class='even'>
     <td><a href='http://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-7247'> Metadata and Abstract</a></td>
     <td> Published at<a href='http://www.ep.liu.se/'> Linköping University Electronic Press.</a></td></tr>
    <tr class='odd'>
     <td><a href='http://guppy-pe.sourceforge.net/heapy-presentation.pdf'> heapy-presentation.pdf</a></td>
     <td> Slides from the presentation.</td></tr>
    <tr>
     <td id='last' colspan='5'></td></tr></table></p>
  <h3>
 External resources
</h3>
  <p>
 Thanks to all that have written about Heapy on various blogs. I
think the following links may be especially useful to get
started. More tips are very welcome!
</p>
  <ul>
   <li><a href='http://www.pkgcore.org/trac/pkgcore/doc/dev-notes/heapy.rst'>How to use guppy/heapy for tracking down memory usage</a> (pkgcore - Trac)</li>
   <li><a href='http://blog.redinnovation.com/2008/03/07/debugging-django-memory-leak-with-trackrefs-and-guppy'>Debugging Django memory leak with TrackRefs and Guppy</a>
 (Redi for Life)
</li></ul><a name='Download'>
   <h2> Download</h2></a>
  <p>

The latest version is in the svn trunk directory. </p>
  <p>
In Version 0.1.9 I have introduced interactive help and compatibility
for MS compilers (see ANNOUNCE and ChangeLog).
</p>
  <p>
 As of 2009-06-23, I have tested the latest revision successfully on
an AMD64 in 64 bits mode with Ubuntu 7.10 with Python 2.3, 2.4, 2.5
and 2.6, and in 32 bits mode with Ubuntu 9.04 with Python 2.4, 2.5 and
2.6 .
</p>
  <p>
 To check out the latest (HEAD) revision, you can do:
</p>
  <pre>
svn co https://guppy-pe.svn.sourceforge.net/svnroot/guppy-pe/trunk/guppy guppy
</pre>
  <p>
 To check out the latest release as of this writing
(2009-06-23, guppy-0.1.9), you can do:
</p>
  <pre>
svn co -r79 https://guppy-pe.svn.sourceforge.net/svnroot/guppy-pe/trunk/guppy guppy

</pre>
  <h3> Source code releases in tarball format</h3>
  <table class='list' style='margin-bottom: 10px;'>
   <tr class='even'>
    <td><a href='http://pypi.python.org/pypi/guppy/0.1.9'> guppy-0.1.9</a></td>
    <td>
 Updated 2009-06-23. Added interactive help and improved 
MS compatibility.</td></tr>
   <tr class='odd'>
    <td><a href='http://pypi.python.org/pypi/guppy/0.1.8'> guppy-0.1.8</a></td>
    <td> Updated 2008-04-08. Works with 64 bits and Python 2.6 .</td></tr>
   <tr class='even'>
    <td><a href='http://guppy-pe.sourceforge.net/guppy-0.1.6.tar.gz'> guppy-0.1.6.tar.gz</a></td>
    <td>
 Updated 2006-10-16. Doesn't work with 64 bits. -- Quick bug fix version,
correcting the name of the Root object in the hpy instance. This is a
kind of bug the automatic test generation should have catched, since
it was specified with another name in the documentation, but I yet
need some time to get that to work... so I am just uploading this
quick fix now.

</td></tr>
   <tr class='odd'>
    <td><a href='http://guppy-pe.sourceforge.net/guppy-0.1.5.tar.gz'> guppy-0.1.5.tar.gz</a></td>
    <td>
 Updated 2006-10-12. Fixed bugs wrt remote
monitoring and HTML rendering. New features include the shorthand sp
for shpaths and representing the source of the shortest paths in terms
of a Root object in the hpy instance. See changelog.
</td></tr>
   <tr class='even'>
    <td><a href='http://guppy-pe.sourceforge.net/guppy-0.1.4.tar.gz'> guppy-0.1.4.tar.gz</a></td>
    <td>
 Updated 2006-10-11. Most changes are to make it work with
Python 2.5; other changes include improved error reporting in Glue.py
and some test improvements.

</td></tr>
   <tr class='odd'>
    <td><a href='http://guppy-pe.sourceforge.net/guppy-0.1.3.tar.gz'> guppy-0.1.3.tar.gz</a></td>
    <td>
 Updated 2006-03-02.

Updates to Monitor so multiple lines work. It also got a command to
interrupt the remote process. Cleanups and bugfixes especially todo
with Python2.4 (used to crash with array objects). A bunch of other
fixes, see changelog.

</td></tr>
   <tr class='even'>
    <td><a href='http://guppy-pe.sourceforge.net/guppy-0.1.2.tar.gz'> guppy-0.1.2.tar.gz</a></td>
    <td>
 Pointer comparison bugs and test portability problems were
fixed. See the included changelog.
</td></tr>
   <tr class='odd'>
    <td><a href='http://guppy-pe.sourceforge.net/guppy-0.1.1.tar.gz'> guppy-0.1.1.tar.gz</a></td>
    <td>
 The C source code for the extension modules
was changed to be ANSI compatible and I also changed some help text that
had become outdated.</td></tr>
   <tr class='even'>
    <td><a href='http://guppy-pe.sourceforge.net/guppy-0.1.tar.gz'> guppy-0.1.tar.gz</a></td>
    <td>
 Original version. Extension modules could not be compiled using
strict ANSI C compilers.</td></tr>
   <tr>
    <td id='last' colspan='5'></td></tr></table><a name='Credits'>
   <h2> Credits</h2></a>
  <ul>
   <li>
 Claudio Grondi has tested in Microsoft XP and reported the
problems that occurred. The ANSI-compatibility problems I think have
been fixed but there also seemed to be problems with the .NET C compiler
which I haven't had a chance to sort out yet.
</li>
   <li>
 Patrik Andersson has helped me installing Ubuntu Linux on my new
computer and to make it dual-boot with Microsoft XP. (But we don't have
any C compiler for Windows XP (yet).)
</li>
   <li>
 Chad Austin has supplied a patch for compiling on Windows w/
Visual Studio 2003 and Python 2.5. I think this may fix similar
problems with other MS compilers, Cygwin &amp; Mingw as well.
</li>
   <li>
 Yaroslav Halchenko is packaging and uploading Guppy into the
Debian distribution.
</li></ul><a name='Contact'>
   <h2>
 Contact
</h2></a>
  <dl>
   <dt>
 The author, Sverker Nilsson, may be contacted at:
</dt>
   <dd>
    <address><a href='mailto:svenil@users.sourceforge.net'> svenil&#64;users.sourceforge.net</a></address></dd>
   <dt>
 I have registered a mailing list for discussions, questions,
announcements etc. The list information, subscription form and archives
are available at:
</dt>
   <dd><a href='http://lists.sourceforge.net/mailman/listinfo/guppy-pe-list'> http://lists.sourceforge.net/mailman/listinfo/guppy-pe-list</a></dd>
   <dt>
 Please let me know of problems, either by mailing me directly, or
via the mailing list mentioned above or the SourceForge bug tracking
system:
</dt>
   <dd><a href='http://sourceforge.net/tracker/?group_id=105577&atid=641821'> http://sourceforge.net/tracker/?group_id=105577&amp;atid=641821</a></dd>
   <dt> The Sourceforge project summary page is:</dt>
   <dd><a href='http://sourceforge.net/projects/guppy-pe'> http://sourceforge.net/projects/guppy-pe</a></dd></dl>
  <hr>Generated by <a href="http://guppy-pe.sourceforge.net/gsl.html">GSL-HTML 0.1.5</a> on Tue Jun 23 16:15:55 2009</div></body></html>