GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DEVEL::MAT::TOOL::SIZES (3)

.ds Aq ’

NAME

"Devel::MAT::Tool::Sizes" - calculate sizes of SV structures

CONTENTS

DESCRIPTION

This Devel::MAT tool calculates the sizes of the structures around SVs. The individual size of each individual SV is given by the size method, though in several cases SVs can be considered to be part of larger structures of a combined aggregate size. This tool calculates those sizes and adds them to the UI.

The structural size is calculated from the basic size of the SV, added to which for various types is:
ARRAY Arrays add the basic size of every non-mortal element SV.
HASH Hashes add the basic size of every non-mortal value SV.
CODE Codes add the basic size of their padlist and constant value, and all their padnames, pads, constants and globrefs.
The owned size is calculated by starting at the given SV and accumulating the set of every strong outref whose refcount is 1. This is the set of all SVs the original directly owns.

SV METHODS

This tool adds the following SV methods.

    structure_set



   @svs = $sv->structure_set



Returns the total set of the SV’s structure.

    structure_size



   $size = $sv->structure_size



Returns the size, in bytes, of the structure that the SV contains.

    owned_set



   @svs = $sv->owned_set



Returns the set of every SV owned by the given one.

    owned_size



   $size = $sv->owned_size



Returns the total size, in bytes, of the SVs owned by the given one.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DEVEL::MAT::TOOL::SIZES (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.