data-size-0.1.0.3: Profiling of data structures

Safe HaskellSafe-Inferred

Data.Size.Base

Synopsis

Documentation

data Size Source

Counter for of words

Constructors

Size 

Fields

_objCnt :: !Int
 
_wordCnt :: !Int
 

mksize :: Int -> SizeSource

Make a counter for one object with n fields

constructors count 1 word If # words for the data is 0, it's a singleton, so the # of objects are not accumulated

singletonSize :: SizeSource

The size value of a singleton

Singletons are only counted once

class Monoid a => Scale a whereSource

Methods

(.*.) :: Int -> a -> aSource

class Typeable a => Sizeable a whereSource

Instances