Guppy-PE/Heapy 0.1.10

2013-04-25 Thread sverker nilsson
I am happy to announce Guppy-PE 0.1.10 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

Re: guppy

2011-11-09 Thread David Robinow
results even > when I pass the "-c mingw32" option. > > The error is reproduced below: > ... It works for me. guppy 0.1.9 gcc 4.5.3 Python 2.6.5 cygwin 1.7.9 [I have no idea if it works as intended. I don't use guppy.] -- http://mail.python.org/mailman/listinfo/python-list

Re: guppy

2011-11-09 Thread Christian Heimes
tSet_Type;". It's not a file local static but an extern declaration. Are you sure that you are using a recent version of GCC 4.x? I had some issues with GCC 3.x in the past. Cygwin has GCC 3.x as default gcc. For Python 2.6 you can use the free VS 2008 Express version. I've compiled guppy for 32bit Python 2.7 a couple of days ago w/o any issue -- http://mail.python.org/mailman/listinfo/python-list

RE: guppy

2011-11-09 Thread Juan Declet-Barreto
z@python.org [mailto:python-list-bounces+juan.declet-barreto=mesaaz@python.org] On Behalf Of Christian Heimes Sent: Wednesday, November 09, 2011 12:21 PM To: python-list@python.org Subject: Re: guppy Am 09.11.2011 20:08, schrieb Juan Declet-Barreto: > I am trying to build guppy on Pytho

Re: guppy

2011-11-09 Thread Benjamin Kaplan
On Wed, Nov 9, 2011 at 2:08 PM, Juan Declet-Barreto wrote: > > I am trying to build guppy on Python 2.5, but am getting an "initializer > element is not constant" error from gcc. I have found very little on this > issue in the fora when looking for the general cause

Re: guppy

2011-11-09 Thread Christian Heimes
Am 09.11.2011 20:08, schrieb Juan Declet-Barreto: > I am trying to build guppy on Python 2.5, but am getting an "initializer > element is not constant" error from gcc. I have found very little on this > issue in the fora when looking for the general cause of the error; there i

guppy

2011-11-09 Thread Juan Declet-Barreto
I am trying to build guppy on Python 2.5, but am getting an "initializer element is not constant" error from gcc. I have found very little on this issue in the fora when looking for the general cause of the error; there is even less that is specific to a guppy build on Python 2

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-11 Thread Ethan Furman
Chris Withers wrote: Sverker Nilsson wrote: The __repr__ I use don't have the enclosing <>, granted, maybe I missed this or it wasn't in the docs in 2005 or I didn't think it was important (still don't) but was that really what the complain was about? No, it was about the fact that when I do

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-11 Thread Chris Withers
Sverker Nilsson wrote: If you just use heap(), and only want total memory not relative to a reference point, you can just use hpy() directly. So rather than: CASE 1: h=hpy() h.heap().dump(...) #other code, the data internal to h is still around h.heap().dump(...) you'd do: CASE 2: hpy().heap

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-10 Thread Sverker Nilsson
its stats, right? This caused me problems in my most > recent use of guppy... If you just use heap(), and only want total memory not relative to a reference point, you can just use hpy() directly. So rather than: CASE 1: h=hpy() h.heap().dump(...) #other code, the data internal to h is still

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-09 Thread Chris Withers
As the enclosing class or frame is deallocated, so is its attribute h itself. Right, but as long as the h hangs around, it hangs on to all the memory it's used to build its stats, right? This caused me problems in my most recent use of guppy... themselves, but I am talking about mor

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-08 Thread Sverker Nilsson
but at least it should be improved by not sharing the hpy() structures.) Even in the absence of multiple threads, you might have an outer invocation of hpy() that is used for global analysis, with its specific options, setref()'s etc, and inner invocations that make some local analysis perhaps

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-07 Thread Chris Withers
attributes of a class instance of some sort then? the other objects you created. Also, it allows for several parallel invocations of Heapy. When is that helpful? However, I am aware of the extra initial overhead to do h=hpy(). I discussed this in my thesis. "Section 4.7.8 Why not importin

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-04 Thread Sverker Nilsson
On Fri, 2009-09-04 at 15:25 +0200, Sverker Nilsson wrote: > > However, I am aware of the extra initial overhead to do h=hpy(). I > discussed this in my thesis. "Section 4.7.8 Why not importing Use > directly?" page 36, > > http://guppy-pe.sourceforge.net/heap

Re: [Guppy-pe-list] An iteration idiom (Was: Re: loading files containing multiple dumps)

2009-09-04 Thread Sverker Nilsson
f=open(f) while True: yield self.load(f) Should we call it loadall? It is a generator so it doesn't really load all immedietally, just lazily. Maybe call it iload? Or redefine load, but that might break existing code so would not be good. > It's all really rather confus

Re: An iteration idiom (Was: Re: [Guppy-pe-list] loading files containing multiple dumps)

2009-09-03 Thread Chris Withers
turns *is* actually an iterable, so either of the above just ends up the contents of each set being extended onto `sets` rather than the sets themselved. It's all really rather confusing, apologies if there's interspersed rant in here: >>> from guppy import hpy >>>

Re: An iteration idiom (Was: Re: [Guppy-pe-list] loading files containing multiple dumps)

2009-09-02 Thread Raymond Hettinger
> I dont know guppy, > but if h.load(f) raises StopIteration upon eof, as seems implied by your > proposal, then something like the following would work. > > sets.extend(h.load(f) for _ in xrange(1e9)) Sounds like hpy has a weird API. Either it should be an iterator supporting

Re: An iteration idiom (Was: Re: [Guppy-pe-list] loading files containing multiple dumps)

2009-09-02 Thread Boris Borcic
Sverker Nilsson wrote: Sverker Nilsson wrote: It reads one Stat object at a time and wants to report something when there is no more to be read from the file. Hmm, am I right in thinking the above can more nicely be written as: >>> from guppy import hpy >>> h = h

An iteration idiom (Was: Re: [Guppy-pe-list] loading files containing multiple dumps)

2009-09-01 Thread Sverker Nilsson
A question arose on guppy-pe-list about how to iterate over objects returned one by one by a method (load) called repeatedly. I defined a generator to do this (loadall), but this seems unwieldy in general. Is there a common idiom here that can usefully be encapsulated in a general method? On Mon

Guppy-PE/Heapy 0.1.9 released

2009-06-24 Thread Sverker Nilsson
I am happy to announce Guppy-PE 0.1.9 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

Guppy-PE / Heapy 0.1.8

2008-04-09 Thread Sverker Nilsson
I am happy to announce Guppy-PE 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

Guppy-PE 0.1.5 released

2006-10-12 Thread Sverker Nilsson
I would like to announce Guppy-PE 0.1.5 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

Re: Compiling Guppy-PE extension modules

2005-12-03 Thread Sverker Nilsson
> "Claudio Grondi" <[EMAIL PROTECTED]> wrote: I don't know if it applies here, but in this context the extern keyword > comes to my mind. [snip extracts from Microsoft docs] Perhaps. But I suspect it isn't that simple since ... I'd think even if I don't use the extern keyword

Re: Compiling Guppy-PE extension modules

2005-12-02 Thread Claudio Grondi
,j); /* Makes sure the optimizer doesnt remove the > previous code */ > return 0; > } > > with > > gcc -O3 -Wall main.c > > gives me: > > main.c: In function `main': > main.c:4: warning: `p' might be used uninitialized in this function > > (An

Re: Compiling Guppy-PE extension modules

2005-12-02 Thread Sverker Nilsson
ove the previous code */ return 0; } with gcc -O3 -Wall main.c gives me: main.c: In function `main': main.c:4: warning: `p' might be used uninitialized in this function (And I get a Segmentation fault from running the executable.) The -Wall flag enables, umm, as it is saying 'a

Re: Compiling Guppy-PE extension modules

2005-12-01 Thread Claudio Grondi
> I have made a new version now, 0.1.1 . > It compiles cleanly with gcc -pedantic . but the problem with sets.c remains: C:\VisualC++NET2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /G7 /GX /DNDEBUG -IE:\Python24\include -IE:\Python24\PC /Tcsrc/sets/sets.c /Fobuild\temp.win32-2.4\Re lease\src/sets/s

Re: Compiling Guppy-PE extension modules

2005-12-01 Thread Sverker Nilsson
I added most of the time but I may have missed some. I have no easy way to test with MSWindows currently and it will probably take a while before I get around to do it. The new version is on the home page: http://guppy-pe.sourceforge.net Regards, Sverker -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling Guppy-PE extension modules

2005-11-29 Thread Dave Hansen
On 29 Nov 2005 11:53:31 -0800 in comp.lang.python, "Sverker Nilsson" <[EMAIL PROTECTED]> wrote: [...] >One of the problems, seems to be string constants in the C source that >contain newlines. I am using GCC on Linux so, I missed this with the I'm not sure what you mean by this. Something like

Re: Compiling Guppy-PE extension modules

2005-11-29 Thread Claudio Grondi
"Sverker Nilsson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > I have been informed that Guppy-PE (http://guppy-pe.sourceforge.net) > has failed to compile its extension modules with a Microsoft .NET 2003 > compiler under Windows 2000. > >

Compiling Guppy-PE extension modules

2005-11-29 Thread Sverker Nilsson
I have been informed that Guppy-PE (http://guppy-pe.sourceforge.net) has failed to compile its extension modules with a Microsoft .NET 2003 compiler under Windows 2000. [To the person who informed me about this in an email per 27 Nov: Thanks for your message. I couldn't reply t