#4211: new optional spkg: guppy
-------------------------------+--------------------------------------------
Reporter: mabshoff | Owner: mabshoff
Type: defect | Status: new
Priority: major | Milestone: sage-3.1.3
Component: optional packages | Keywords:
-------------------------------+--------------------------------------------
From http://pypi.python.org/pypi/guppy/0.1.8:
Guppy-PE is a library and programming environment for Python, currently
providing in particular the Heapy subsystem, which supports object and
heap memory sizing, profiling and debugging. It also includes a
prototypical specification language, the Guppy Specificaion Language
(GSL), which can be used to formally specify aspects of Python programs
and generate tests and documentation from a common source.
This should help us track down some interesting issues :)
Cheers,
Michael
A sample session:
{{{
[EMAIL PROTECTED]:/scratch/mabshoff/release-cycle/sage-3.1.3.alpha2$ ./sage
----------------------------------------------------------------------
| SAGE Version 3.1.3.alpha1, Release Date: 2008-09-24 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: from guppy import hpy; h=hpy()
sage: h.heap()
Partition of a set of 301445 objects. Total size = 46220768 bytes.
Index Count % Size % Cumulative % Kind (class / dict of class)
0 140520 47 20492952 44 20492952 44 str
1 79975 27 6936840 15 27429792 59 tuple
2 1297 0 3251608 7 30681400 66 dict of module
3 22307 7 2676840 6 33358240 72 types.CodeType
4 21938 7 2632560 6 35990800 78 function
5 2531 1 2427464 5 38418264 83 dict of type
6 2531 1 2214200 5 40632464 88 type
7 2312 1 1674560 4 42307024 92 dict (no owner)
8 670 0 682192 1 42989216 93 dict of class
9 4935 2 355320 1 43344536 94 __builtin__.method_descriptor
<736 more rows. Type e.g. '_.more' to view.>
sage: h.iso(1,[],{})
Partition of a set of 3 objects. Total size = 400 bytes.
Index Count % Size % Cumulative % Kind (class / dict of class)
0 1 33 280 70 280 70 dict (no owner)
1 1 33 72 18 352 88 list
2 1 33 48 12 400 100 sage.rings.integer.Integer
sage: h.iso(2,[],{})
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4211>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---