-- 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.9.1 module Eventlog.Args args :: IO Args argsInfo :: ParserInfo Args data Args Args :: Sort -> Bool -> Int -> Maybe Int -> Bool -> Bool -> Bool -> Bool -> Bool -> Text -> Maybe Int -> [Text] -> [Text] -> Maybe String -> [String] -> Args [sorting] :: Args -> Sort [reversing] :: Args -> Bool [nBands] :: Args -> Int [detailedLimit] :: Args -> Maybe 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 Gradient :: Sort defaultArgs :: FilePath -> IO Args module Eventlog.AssetVersions vegaVersion :: String vegaURL :: String vegaLiteVersion :: String vegaLiteURL :: String vegaEmbedVersion :: String vegaEmbedURL :: String jqueryVersion :: String jqueryURL :: String bootstrapVersion :: String bootstrapURL :: String sparklinesVersion :: String sparklinesURL :: String bootstrapCSSVersion :: String bootstrapCSSURL :: String fancyTableVersion :: String fancyTableURL :: String module Eventlog.Javascript vegaLite :: Text vegaEmbed :: Text vega :: Text jquery :: Text bootstrap :: Text bootstrapCSS :: Text fancytable :: Text sparkline :: Text stylesheet :: Text tablogic :: Text treevega :: Text module Eventlog.Types data InfoTablePtr InfoTablePtr :: Word64 -> InfoTablePtr data InfoTableLoc InfoTableLoc :: !Text -> !ClosureType -> !Text -> !Text -> !Text -> !Text -> InfoTableLoc [itlName] :: InfoTableLoc -> !Text [itlClosureDesc] :: InfoTableLoc -> !ClosureType [itlTyDesc] :: InfoTableLoc -> !Text [itlLbl] :: InfoTableLoc -> !Text [itlModule] :: InfoTableLoc -> !Text [itlSrcLoc] :: InfoTableLoc -> !Text data ProfData ProfData :: Header -> Map Bucket BucketInfo -> Map Word32 CostCentre -> [Frame] -> [Trace] -> HeapInfo -> Map InfoTablePtr InfoTableLoc -> ProfData [profHeader] :: ProfData -> Header [profTotals] :: ProfData -> Map Bucket BucketInfo [profCCMap] :: ProfData -> Map Word32 CostCentre [profFrames] :: ProfData -> [Frame] [profTraces] :: ProfData -> [Trace] [profHeap] :: ProfData -> HeapInfo [profItl] :: ProfData -> Map InfoTablePtr InfoTableLoc data HeapInfo HeapInfo :: [HeapSample] -> [HeapSample] -> [HeapSample] -> HeapInfo [heapSizeSamples] :: HeapInfo -> [HeapSample] [blocksSizeSamples] :: HeapInfo -> [HeapSample] [liveBytesSamples] :: HeapInfo -> [HeapSample] -- | A trace we also want to show on the graph data Trace Trace :: Double -> Text -> Trace data Frame Frame :: Double -> [Sample] -> Frame data HeapSample HeapSample :: Double -> Word64 -> HeapSample 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 -> !Maybe (Double, Double, Double) -> BucketInfo [shortDescription] :: BucketInfo -> Text [longDescription] :: BucketInfo -> Maybe [Word32] [bucketTotal] :: BucketInfo -> Double [bucketStddev] :: BucketInfo -> Double [bucketGradient] :: BucketInfo -> !Maybe (Double, Double, Double) newtype Bucket Bucket :: Text -> Bucket data Header Header :: Text -> Text -> Maybe HeapProfBreakdown -> Text -> Text -> Text -> Int -> Maybe FilePath -> Header [hJob] :: Header -> Text [hDate] :: Header -> Text [hHeapProfileType] :: Header -> Maybe HeapProfBreakdown [hSamplingRate] :: Header -> Text [hSampleUnit] :: Header -> Text [hValueUnit] :: Header -> Text [hCount] :: Header -> Int [hProgPath] :: Header -> Maybe FilePath toItblPointer :: Bucket -> InfoTablePtr -- | Sample break-down types in heap profiling data HeapProfBreakdown HeapProfBreakdownCostCentre :: HeapProfBreakdown HeapProfBreakdownModule :: HeapProfBreakdown HeapProfBreakdownClosureDescr :: HeapProfBreakdown HeapProfBreakdownTypeDescr :: HeapProfBreakdown HeapProfBreakdownRetainer :: HeapProfBreakdown HeapProfBreakdownBiography :: HeapProfBreakdown HeapProfBreakdownClosureType :: HeapProfBreakdown HeapProfBreakdownInfoTable :: HeapProfBreakdown data ClosureType instance GHC.Show.Show Eventlog.Types.Header 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.BucketInfo instance GHC.Show.Show Eventlog.Types.CostCentre instance GHC.Show.Show Eventlog.Types.Sample instance GHC.Show.Show Eventlog.Types.HeapSample instance GHC.Show.Show Eventlog.Types.Frame instance GHC.Show.Show Eventlog.Types.Trace instance GHC.Show.Show Eventlog.Types.HeapInfo instance GHC.Show.Show Eventlog.Types.InfoTableLoc instance GHC.Classes.Ord Eventlog.Types.InfoTablePtr instance GHC.Classes.Eq Eventlog.Types.InfoTablePtr instance GHC.Show.Show Eventlog.Types.ProfData instance GHC.Show.Show Eventlog.Types.InfoTablePtr module Eventlog.Trie outputTree :: Map Word32 CostCentre -> [(Bucket, (Int, BucketInfo))] -> Value outputTrie :: Map Word32 CostCentre -> TMap Word32 (Int, Text, Text) -> [Value] newLabel :: Word32 -> State Int Text outputTrieLoop :: Map Word32 CostCentre -> Text -> Map Word32 (TMap Word32 (Int, Text, Text)) -> State Int [Value] mkNode :: Text -> Maybe Text -> Text -> Maybe (Int, Text, Text) -> Value module Eventlog.Total total :: [Frame] -> (Int, Map Bucket (Double, Double, Maybe (Double, Double, Double))) module Eventlog.Prune pruneBands :: Args -> Map Bucket BucketInfo -> Map Bucket (Int, BucketInfo) pruneDetailed :: 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.FrameEL instance GHC.Show.Show Eventlog.Events.CCStack instance GHC.Show.Show Eventlog.Events.CCSMap instance GHC.Show.Show Eventlog.Events.EL module Eventlog.Detailed data InfoTableLocStatus None :: InfoTableLocStatus Missing :: InfoTableLocStatus Here :: InfoTableLoc -> InfoTableLocStatus mkMissing :: Maybe InfoTableLoc -> InfoTableLocStatus mkClosureInfo :: Map Bucket a -> Map InfoTablePtr InfoTableLoc -> Map Bucket (InfoTableLocStatus, a) renderClosureInfo :: (UArray Int Double, UArray (Int, Int) Double) -> Maybe (Map InfoTablePtr InfoTableLoc) -> Map Bucket (Int, BucketInfo) -> Html renderSpark :: [(Double, Double)] -> Html initTable :: Text getBandValues :: Int -> (UArray Int Double, UArray (Int, Int) Double) -> [(Double, Double)] 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] heapToVega :: HeapInfo -> [VegaHeap] instance GHC.Generics.Generic Eventlog.Vega.VegaEntry instance Data.Aeson.Types.ToJSON.ToJSON Eventlog.Vega.VegaEntry instance GHC.Show.Show Eventlog.Vega.VegaEntry 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.VegaHeap instance Data.Aeson.Types.ToJSON.ToJSON Eventlog.Vega.VegaHeap instance GHC.Show.Show Eventlog.Vega.VegaHeap module Eventlog.Data generateJson :: FilePath -> Args -> IO (Header, Value, Maybe Value, Maybe Html) generateJsonValidate :: (ProfData -> IO ()) -> FilePath -> Args -> IO (Header, Value, Maybe Value, Maybe Html) generateJsonData :: Args -> ProfData -> IO (Header, Value, Maybe Value, Maybe Html) module Eventlog.VegaTemplate data AreaChartType Stacked :: AreaChartType Normalized :: AreaChartType StreamGraph :: AreaChartType data ChartConfig ChartConfig :: Double -> Double -> Bool -> Text -> Text -> ChartType -> Maybe Double -> ChartConfig [cwidth] :: ChartConfig -> Double [cheight] :: ChartConfig -> Double [traces] :: ChartConfig -> Bool [colourScheme] :: ChartConfig -> Text [lineColourScheme] :: ChartConfig -> Text [chartType] :: ChartConfig -> ChartType [fixedYAxisExtent] :: ChartConfig -> Maybe Double data ChartType AreaChart :: AreaChartType -> ChartType LineChart :: ChartType HeapChart :: ChartType vegaResult :: ChartConfig -> VegaLite vegaJson :: ChartConfig -> Value vegaJsonText :: ChartConfig -> Text module Eventlog.HtmlTemplate type VizID = Int insertJsonData :: Value -> Html insertJsonDesc :: Value -> Html insertColourScheme :: Text -> Html data_sets :: [Text] -> [Text] data IncludeTraceData TraceData :: IncludeTraceData NoTraceData :: IncludeTraceData encloseScript :: [Text] -> VizID -> Text -> Html encloseRawVegaScript :: VizID -> Text -> Html encloseScriptX :: [Text] -> VizID -> Text -> Html jsScript :: String -> Html css :: AttributeValue -> Html htmlHeader :: Value -> Maybe Value -> Args -> Html template :: Header -> Value -> Maybe Value -> Maybe Html -> Args -> Html select_data :: IncludeTraceData -> ChartType -> [Text] htmlConf :: Args -> ChartType -> ChartConfig renderChart :: IncludeTraceData -> ChartType -> Bool -> VizID -> Text -> Html renderChartWithJson :: IncludeTraceData -> ChartType -> Int -> Value -> Text -> Html templateString :: Header -> Value -> Maybe Value -> Maybe Html -> Args -> String ppHeapProfileType :: HeapProfBreakdown -> Text