YhcSource codeContentsIndex
ByteCode.Metric
Contents
Instruction metrics
Synopsis
data InsMetric = IM {
imStack :: Int
imEval :: Bool
imHeap :: HeapUsage
imId :: Int
}
data HeapUsage
= HeapStatic (Int -> Int)
| HeapDynamic
bcodeMetric :: Ins -> InsMetric
Instruction metrics
data InsMetric
Instruction metrics give useful information about all the instructions such as stack and heap usage
Constructors
IM
imStack :: Int
imEval :: Bool
imHeap :: HeapUsage
imId :: Int
data HeapUsage
Information about the heap usage of an instruction
Constructors
HeapStatic (Int -> Int)
HeapDynamic
bcodeMetric :: Ins -> InsMetric
Calculate instruction metrics from a given bytecode instruction
Produced by Haddock version 0.8