Memory allocation

P

Peter Hansen

Batista said:
How could I know how much memory uses an object?

Something like:
n

Can you provide more background on the specific problem you need
to solve, or are you looking for a very general solution? In
other words, do you just need to know how much memory a list, or
an integer uses up, or do you think you need a general-purpose
function which works with any object of any type.

And in the above example, would you be interested in the memory
used by the integer 66, or the memory used by the list that contains
a reference to that integer, or the combined total?

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top