Giter Club home page Giter Club logo

Comments (3)

zhuyifei1999 avatar zhuyifei1999 commented on July 18, 2024 1

Guppy can dump the statistics from an existing guppy session

IdentitySet.dump is the function.

>>> import guppy
>>> guppy.hpy().heap().dump('test.hpy')

makes:

.loader: _load_stat
.format: SetFormat
.timemade: 1628756373.710652
.count: 38146
.size: 4497412
.kindname: 
.kindheader: Kind (class / dict of class)
.numrows: 127
.r: 11118 985591 str
.r: 7725 535840 tuple
.r: 576 480952 type
.r: 2668 471304 types.CodeType
.r: 5242 375945 bytes
.r: 2448 332928 function
[...]
.r: 1 16 builtins.NoneType
.r: 1 16 builtins.NotImplementedType
.r: 1 16 builtins.ellipsis
.end: .loader: _load_stat

... which you can get by guppy.hpy().heap().all (use repr() or str() to convert it to string)

from guppy3.

zhuyifei1999 avatar zhuyifei1999 commented on July 18, 2024

Unfortunately, not really :( Guppy can dump the statistics from an existing guppy session, but any 'more advanced' analysis, such as trying to filter by reference types, needs to be analyzed from within.

from guppy3.

zhuyifei1999 avatar zhuyifei1999 commented on July 18, 2024

I'm gonna close this as dup of #22 and #24. Feel free to reopen if you have more questions.

from guppy3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.