---
name: "Devel::MAT::Tool::Count"
section: "3pm"
platform: "linux"
package: "libdevel-mat-perl"
version: "0.53-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Devel::MAT::Tool::Count"
---

# Devel::MAT::Tool::Count(3pm)

count the various kinds of SV

## 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:

- \--blessed, -b

  Additionally classify blessed references per package

- \--scalars, -S

  Additionally classify SCALAR SVs according to which fields they have present

- \--struct

  Use the structural size to sum byte counts

- \--owned

  Use the owned size to sum byte counts

## AUTHOR

Paul Evans \<leonerd@leonerd.org.uk\>
