in reply to Re: Should Devel::Size work on tied arrays?
in thread Should Devel::Size work on tied arrays?

maybe, something like Memchmark?
  • Comment on Re^2: Should Devel::Size work on tied arrays?

Replies are listed 'Best First'.
Re^3: Should Devel::Size work on tied arrays?
by martin (Friar) on Feb 01, 2006 at 17:50 UTC
    maybe, something like Memchmark?

    Almost, but not quite, since Memchmark watches behaviour of code while the point here is to examine static data.

    A helpful technique might be to duplicate data over and over in order to increase the scale (though that is not trivial, think of shared hash keys and deeply nested references) while tracking overall memory consumption, and then doing some math.