.tgt.kindnames.guppy

Name

guppy

Synopsis

Methods
hpy( [ht = Any+]) -> Use
Root() -> guppy_Root

Methods

hpy( [ht = Any+]) -> Use
Create a new heapy object that may be used for accessing all of the heapy functionality. Methods and modules are imported by this object on demand when needed. Two commonly used methods are heap and iso.
An example:
>>> from guppy import hpy
>>> hpy().heap() # Show current reachable heap
Partition of a set of 30976 objects. Total size = 3544220 bytes.
 Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)
     0   8292  27   739022  21    739022  21 str
...
     9    172   1    81712   2   3054020  86 dict (no owner)
<89 more rows. Type e.g. '_.more' to view.>
>>> 
To see more about how the heapy object may be used, follow the link on the return kind.
Normally no arguments need to be given. The arguments that may be given are for special cases.
Argument
ht = Any+
The hiding tag to use. It may be useful to specify this in some cases when using multiple heapy instances, when you want to see the data in some of the other instances.
Default: will be set to the same unique object each
time. In this way, different heapy instances will not see each other's data.
Root() -> guppy_Root
Create a new guppy Root object.

All functionality in the system may be accessed from this object. Modules are imported on demand when accessed. Other objects may be created or imported on demand using Guppy Glue+ directives.

As this is a general access point, the heapy functionality may be accessed from here as well as via the hpy() method. How it is done is beyond the scope of this documentation, and is to be regarded an implementation detail, but you can of course look at the source code for the hpy method.

There is currently no arguments to this constructor, I may think of adding some options in the future, but it has not yet been needed.


Generated by GSL-HTML 3.1.4.post1 on Tue Oct 24 11:59:30 2023