-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Visualise an eventlog -- -- eventlog2html is a library for visualising eventlogs. At the moment, -- the intended use is to visualise eventlogs which have heap profiling -- events, as a replacement to hp2ps and hp2pretty. eventlog2html creates -- a static webpage which contains a collection of different interactive -- charts for analysing heap usage. Trace events are displayed on the -- chart and the charts can be zoomed, scrolled and filtered to give a -- more exploratory feel to heap profile analysis. @package eventlog2html @version 0.7.0 module Eventlog.Args args :: IO Args argsInfo :: ParserInfo Args data Args Args :: Sort -> Bool -> Int -> Bool -> Bool -> Bool -> Bool -> Bool -> Text -> Maybe Int -> [Text] -> [Text] -> Maybe String -> [String] -> Args [sorting] :: Args -> Sort [reversing] :: Args -> Bool [nBands] :: Args -> Int [heapProfile] :: Args -> Bool [noIncludejs] :: Args -> Bool [json] :: Args -> Bool [noTraces] :: Args -> Bool -- | By default, only traceMarkers are included. This option enables the -- inclusion of traceEvents. [traceEvents] :: Args -> Bool [userColourScheme] :: Args -> Text [fixedYAxis] :: Args -> Maybe Int [includeStr] :: Args -> [Text] [excludeStr] :: Args -> [Text] [outputFile] :: Args -> Maybe String [files] :: Args -> [String] data Sort Size :: Sort StdDev :: Sort Name :: Sort module Eventlog.Types data ProfData ProfData :: Header -> Map Bucket BucketInfo -> Map Word32 CostCentre -> [Frame] -> [Trace] -> ProfData [profHeader] :: ProfData -> Header [profTotals] :: ProfData -> Map Bucket BucketInfo [profCCMap] :: ProfData -> Map Word32 CostCentre [profFrames] :: ProfData -> [Frame] [profTraces] :: ProfData -> [Trace] -- | A trace we also want to show on the graph data Trace Trace :: Double -> Text -> Trace data Frame Frame :: Double -> [Sample] -> Frame data Sample Sample :: Bucket -> Double -> Sample data CostCentre CC :: Word32 -> Text -> Text -> Text -> CostCentre [cid] :: CostCentre -> Word32 [label] :: CostCentre -> Text [modul] :: CostCentre -> Text [loc] :: CostCentre -> Text data BucketInfo BucketInfo :: Text -> Maybe [Word32] -> Double -> Double -> BucketInfo [shortDescription] :: BucketInfo -> Text [longDescription] :: BucketInfo -> Maybe [Word32] [bucketTotal] :: BucketInfo -> Double [bucketStddev] :: BucketInfo -> Double newtype Bucket Bucket :: Text -> Bucket data Header Header :: Text -> Text -> Maybe HeapProfBreakdown -> Text -> Text -> Text -> Int -> Header [hJob] :: Header -> Text [hDate] :: Header -> Text [hHeapProfileType] :: Header -> Maybe HeapProfBreakdown [hSamplingRate] :: Header -> Text [hSampleUnit] :: Header -> Text [hValueUnit] :: Header -> Text [hCount] :: Header -> Int -- | Sample break-down types in heap profiling data HeapProfBreakdown HeapProfBreakdownCostCentre :: HeapProfBreakdown HeapProfBreakdownModule :: HeapProfBreakdown HeapProfBreakdownClosureDescr :: HeapProfBreakdown HeapProfBreakdownTypeDescr :: HeapProfBreakdown HeapProfBreakdownRetainer :: HeapProfBreakdown HeapProfBreakdownBiography :: HeapProfBreakdown HeapProfBreakdownClosureType :: HeapProfBreakdown instance GHC.Show.Show Eventlog.Types.ProfData instance GHC.Show.Show Eventlog.Types.Trace instance GHC.Show.Show Eventlog.Types.Frame instance GHC.Show.Show Eventlog.Types.Sample instance GHC.Show.Show Eventlog.Types.CostCentre instance GHC.Show.Show Eventlog.Types.BucketInfo instance Data.Hashable.Class.Hashable Eventlog.Types.Bucket instance Data.Aeson.Types.ToJSON.ToJSON Eventlog.Types.Bucket instance GHC.Classes.Eq Eventlog.Types.Bucket instance GHC.Classes.Ord Eventlog.Types.Bucket instance GHC.Show.Show Eventlog.Types.Bucket instance GHC.Show.Show Eventlog.Types.Header module Eventlog.Trie outputTree :: Map Word32 CostCentre -> [(Bucket, (Int, BucketInfo))] -> Value outputTrie :: Map Word32 CostCentre -> TMap Word32 (Int, Text, Text) -> [Value] outputTrieLoop :: Map Word32 CostCentre -> Word32 -> Map Word32 (TMap Word32 (Int, Text, Text)) -> [Value] mkNode :: Word32 -> Maybe Word32 -> Text -> Maybe (Int, Text, Text) -> Value module Eventlog.Total total :: [Frame] -> (Int, Map Bucket (Double, Double)) module Eventlog.Prune prune :: Args -> Map Bucket BucketInfo -> Map Bucket (Int, BucketInfo) module Eventlog.HeapProf chunk :: FilePath -> IO ProfData module Eventlog.Events chunk :: Args -> FilePath -> IO ProfData instance GHC.Show.Show Eventlog.Events.EL instance GHC.Show.Show Eventlog.Events.CCSMap instance GHC.Show.Show Eventlog.Events.CCStack instance GHC.Show.Show Eventlog.Events.FrameEL module Eventlog.Bands bands :: Header -> Map Bucket Int -> [Frame] -> (UArray Int Double, UArray (Int, Int) Double) series :: Set Bucket -> [Frame] -> [Series] bandsToSeries :: Map Bucket Int -> (UArray Int Double, UArray (Int, Int) Double) -> [Series] instance GHC.Generics.Generic Eventlog.Bands.Series instance Data.Aeson.Types.ToJSON.ToJSON Eventlog.Bands.Series instance GHC.Show.Show Eventlog.Bands.Series module Eventlog.Vega bandsToVega :: Map Bucket (Int, BucketInfo) -> (UArray Int Double, UArray (Int, Int) Double) -> [VegaEntry] tracesToVega :: [Trace] -> [VegaTrace] instance GHC.Generics.Generic Eventlog.Vega.VegaTrace instance Data.Aeson.Types.ToJSON.ToJSON Eventlog.Vega.VegaTrace instance GHC.Show.Show Eventlog.Vega.VegaTrace instance GHC.Generics.Generic Eventlog.Vega.VegaEntry instance Data.Aeson.Types.ToJSON.ToJSON Eventlog.Vega.VegaEntry instance GHC.Show.Show Eventlog.Vega.VegaEntry module Eventlog.Data generateJson :: FilePath -> Args -> IO (Header, Value, Maybe Value) generateJsonValidate :: (ProfData -> IO ()) -> FilePath -> Args -> IO (Header, Value, Maybe Value) module Eventlog.VegaTemplate data AreaChartType Stacked :: AreaChartType Normalized :: AreaChartType StreamGraph :: AreaChartType data ChartConfig ChartConfig :: Double -> Double -> Bool -> Text -> ChartType -> Maybe Double -> ChartConfig [cwidth] :: ChartConfig -> Double [cheight] :: ChartConfig -> Double [traces] :: ChartConfig -> Bool [colourScheme] :: ChartConfig -> Text [chartType] :: ChartConfig -> ChartType [fixedYAxisExtent] :: ChartConfig -> Maybe Double data ChartType AreaChart :: AreaChartType -> ChartType LineChart :: ChartType vegaResult :: ChartConfig -> VegaLite vegaJson :: ChartConfig -> Value vegaJsonText :: ChartConfig -> Text module Eventlog.VegaVersions vegaVersion :: String vegaLiteVersion :: String vegaEmbedVersion :: String module Eventlog.Javascript vegaLite :: Text vegaEmbed :: Text vega :: Text stylesheet :: Text tablogic :: Text milligram :: Text normalizecss :: Text treevega :: Text module Eventlog.HtmlTemplate type VizID = Int insertJsonData :: Value -> Html insertJsonDesc :: Value -> Html insertColourScheme :: Text -> Html data_sets :: IncludeTraceData -> [Text] data IncludeTraceData TraceData :: IncludeTraceData NoTraceData :: IncludeTraceData encloseScript :: IncludeTraceData -> VizID -> Text -> Html encloseRawVegaScript :: IncludeTraceData -> VizID -> Text -> Html encloseScriptX :: Bool -> IncludeTraceData -> VizID -> Text -> Html htmlHeader :: Value -> Maybe Value -> Args -> Html template :: Header -> Value -> Maybe Value -> Args -> Html htmlConf :: Args -> ChartType -> ChartConfig renderChart :: IncludeTraceData -> Bool -> VizID -> Text -> Html renderChartWithJson :: IncludeTraceData -> Int -> Value -> Text -> Html templateString :: Header -> Value -> Maybe Value -> Args -> String ppHeapProfileType :: HeapProfBreakdown -> Text