| Copyright | (c) 2026 Tushar Adhatrao |
|---|---|
| License | MIT |
| Stability | stable |
| Safe Haskell | None |
| Language | GHC2021 |
WasmEdge.Statistics
Contents
Description
Synopsis
- data Statistics
- createStatistics :: IO Statistics
- deleteStatistics :: Statistics -> IO ()
- withStatistics :: (Statistics -> IO a) -> IO a
- getInstrCount :: Statistics -> IO Word64
- getInstrPerSecond :: Statistics -> IO Double
- getTotalCost :: Statistics -> IO Word64
- setStatCostTable :: Statistics -> [Word64] -> IO ()
- setStatCostLimit :: Statistics -> Word64 -> IO ()
- clearStatistics :: Statistics -> IO ()
- unsafeStatisticsPtr :: Statistics -> IO (Ptr StatisticsTag)
- borrowStatistics :: Ptr StatisticsTag -> IO Statistics
Documentation
data Statistics #
deleteStatistics :: Statistics -> IO () #
withStatistics :: (Statistics -> IO a) -> IO a #
getInstrCount :: Statistics -> IO Word64 #
getInstrPerSecond :: Statistics -> IO Double #
getTotalCost :: Statistics -> IO Word64 #
setStatCostTable :: Statistics -> [Word64] -> IO () #
setStatCostLimit :: Statistics -> Word64 -> IO () #
clearStatistics :: Statistics -> IO () #
Internal / borrowed pointers
unsafeStatisticsPtr :: Statistics -> IO (Ptr StatisticsTag) #
Extract the raw pointer of a Statistics context.
borrowStatistics :: Ptr StatisticsTag -> IO Statistics #
Create a borrowed Statistics context from a raw pointer.