Skip Menu |

This queue is for tickets about the Devel-MAT CPAN distribution.

Report information
The Basics
Id: 125915
Status: resolved
Priority: 0/
Queue: Devel-MAT

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.36
Fixed in: 0.37



Subject: Discrepency between Devel::MAT and Devel::Gladiator
A small test program that captures a .pmat file and prints SV counts using Devel::Gladiator shows some differences in captured object counts between the two. $ perl -Mblib develmat-vs-gladiator.pl ARENA COUNTS: 2601 SCALAR 374 GLOB 234 ARRAY 193 CODE 112 HASH 86 REGEXP 31 INVLIST 24 REF 8 IO::File 8 REF-SCALAR 6 REF-ARRAY 5 REF-HASH 3 REF-Regexp 3 Regexp 1 REF-CODE 1 REF-version 1 version $ pmat vs.pmat count Perl memory dumpfile from perl 5.26.2 Heap contains 2674 objects Kind Count (blessed) Bytes (blessed) ARRAY 212 0 18.5 KiB CODE 208 0 26.0 KiB GLOB 374 0 55.5 KiB HASH 63 1 56.9 KiB 192 bytes INVLIST 31 0 33.3 KiB IO 8 8 1.2 KiB 1.2 KiB PAD 121 0 35.1 KiB REF 23 0 552 bytes REGEXP 89 3 19.5 KiB 672 bytes SCALAR 1495 0 75.1 KiB STASH 50 0 22.9 KiB ----- (total) 2674 12 344.5 KiB 2.1 KiB Some matching values, some non. Of particular note is how many more SCALARs Devel::Gladiator can see (2601 plus all the REFs) vs Devel::MAT::Dumper (1495+23 = 1518). -- Paul Evans
On Tue Jul 24 06:29:50 2018, PEVANS wrote: Show quoted text
> Of particular note is how many more SCALARs Devel::Gladiator can see > (2601 plus all the REFs) vs Devel::MAT::Dumper (1495+23 = 1518).
Ah. D:G dumps all the SVt_NULL SVs, which D:M was skipping because I didn't think they were valid. Turns out they're a valid way to encode "undef". Having fixed that the counts basically now agree -- Paul Evans