Devel:...::Count(3pm)

πŸ’– NAME πŸ’–

Devel::MAT::Tool::Count β€” bestie, this one literally counts every kind of SV for u ✨


🌸 DESCRIPTION 🌸

So Devel::MAT is the whole toolkit, right? And this lil tool right here is the one that goes through the heap and counts up all the different kinds of SV chilling in there. That's it. That's the job. And it ate πŸ’…


πŸŽ€ COMMANDS πŸŽ€

✨ count ✨

pmat> count
  Kind       Count (blessed)        Bytes (blessed)
  ARRAY        170         0     15.1 KiB
  CODE         166         0     20.8 KiB

It prints u a lil summary of how many of each type of object there are 🫢 like a headcount but for SVs.

It takes these named options, no cap:

  • --blessed, -b β€” also breaks down blessed references per package, so u can see who's repping which class πŸ‘‘
  • --scalars, -S β€” also sorts the SCALAR SVs by which fields they actually have present
  • --struct β€” sums up the byte counts using the structural size
  • --owned β€” sums up the byte counts using the owned size

πŸ¦‹ AUTHOR πŸ¦‹

Paul Evans <leonerd@leonerd.org.uk> πŸ’œ


ok that's the whole page bestie, stan a tidy manpage ✨ this one's from perl v5.42.3, dated 2026-08-21, and it lives in the User Contributed Perl Documentation β€” mwah, take care of her πŸ’…πŸŽ€

πŸ“¦ where this page comes from