Jaymon / pout

Python pretty print on steroids
MIT License
29 stars 0 forks source link

Get memory size of objects #64

Open Jaymon opened 3 years ago

Jaymon commented 3 years ago

That will return the size, in memory, of the object.

I can use sys.getsizeof() and something like this recipe: COMPUTE MEMORY FOOTPRINT OF AN OBJECT AND ITS CONTENTS (PYTHON RECIPE) to get the size of the objects

Now, I could add a pout.z() that would print the memory of the object, or I could just add it to the normal value of, at least, objects, so it would print out with everything else if you passed in an object.

Links

Search