module Eventlog.Types where import Data.Text (Text) import Data.Map (Map) data Header = Header { hJob :: Text , hDate :: Text , hSampleUnit :: Text , hValueUnit :: Text , hCount :: Int } data Sample = Sample Text Double deriving Show data Frame = Frame Double [Sample] deriving Show -- | A trace we also want to show on the graph data Trace = Trace Double Text deriving Show data ProfData = ProfData Header (Map Text (Double, Double)) [Frame] [Trace]