Safe HaskellSafe-Infered



procstat data collector.



defaultFile :: FilePathSource

windowSize :: IntegerSource

dcName :: StringSource

The name of this data collector.

dcVersion :: DCVersionSource

The version of this data collector.

dcFormatVersion :: IntSource

The version number for the data format of this data collector.

dcCategory :: Maybe DCCategorySource

The category of this data collector.

dcKind :: DCKindSource

The kind of this data collector.

dcReport :: Maybe CollectorData -> IO DCReportSource

The data exported by the data collector, taken from the default location.

type Buffer = Seq (ClockTime, [Int])Source

dcCollectFromFile :: FilePath -> IO (ClockTime, [Int])Source

dcUpdate :: Maybe CollectorData -> IO CollectorDataSource

Updates the given Collector data.

computeAverage :: Buffer -> Integer -> Integer -> Result [Double]Source

buildJsonReport :: Buffer -> IO JSValueSource