parse-gcstats-0.1.0.0: Parse machine-readable GHC GC stats.

Safe HaskellSafe
LanguageHaskell2010

Data.GCStats.Parse

Synopsis

Documentation

gcStatsParser :: Parser (HashMap Text Double) Source #

Parse a map of keys to values. All values are assumed to be Double though many are actually integers.

gcStatsIncr :: ParserState -> Parser (Maybe ((Text, Double), ParserState)) Source #

Parser that returns entries as they come in, effectively streaming the entries.

You have to pass subsequent ParserState results to next invocations. If function returns Nothing, parsing is finished.