Scroll to navigation

Devel::MAT::Tool::Count(3pm) User Contributed Perl Documentation Devel::MAT::Tool::Count(3pm)

NAME

"Devel::MAT::Tool::Count" - count the various kinds of SV

DESCRIPTION

This "Devel::MAT" tool counts the different kinds of SV in the heap.

COMMANDS

count

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

Prints a summary of the count of each type of object.

Takes the following named options:

Additionally classify blessed references per package
Additionally classify SCALAR SVs according to which fields they have present
Use the structural size to sum byte counts
Use the owned size to sum byte counts

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>

2023-03-26 perl v5.36.0