1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
module GUI.Types (
ViewParameters(..),
Trace(..),
Timestamp,
Interval,
) where
import GHC.RTS.Events
-----------------------------------------------------------------------------
data Trace
= TraceHEC Int
| TraceInstantHEC Int
| TraceCreationHEC Int
| TraceConversionHEC Int
| TracePoolHEC Int
| TraceHistogram
| TraceGroup String
| TraceActivity
-- more later ...
-- | TraceThread ThreadId
deriving Eq
type Interval = (Timestamp, Timestamp)
-- the parameters for a timeline render; used to figure out whether
-- we're drawing the same thing twice.
data ViewParameters = ViewParameters {
width, height :: Int,
viewTraces :: [Trace],
hadjValue :: Double,
scaleValue :: Double,
maxSpkValue :: Double,
detail :: Int,
bwMode, labelsMode :: Bool,
histogramHeight :: Int,
minterval :: Maybe Interval,
xScaleAreaHeight :: Int
}
deriving Eq
|