ghc-events-0.4.3.0: Library and tool for parsing .eventlog files from GHC

Safe HaskellSafe-Inferred
LanguageHaskell98

GHC.RTS.Events

Contents

Synopsis

The event log types

data EventLog Source

Constructors

EventLog 

Fields

header :: Header
 
dat :: Data
 

Instances

data EventType Source

Constructors

EventType 

Fields

num :: EventTypeNum
 
desc :: EventTypeDesc
 
size :: Maybe EventTypeSize

Nothing indicates variable size

data Event Source

Constructors

Event 

Fields

time :: !Timestamp
 
spec :: EventInfo
 

Instances

data EventInfo Source

Constructors

EventBlock 
UnknownEvent 

Fields

ref :: !EventTypeNum
 
Startup 

Fields

n_caps :: Int
 
Shutdown 
CreateThread 

Fields

thread :: !ThreadId
 
RunThread 

Fields

thread :: !ThreadId
 
StopThread 
ThreadRunnable 

Fields

thread :: !ThreadId
 
MigrateThread 

Fields

thread :: !ThreadId
 
newCap :: !Int
 
WakeupThread 

Fields

thread :: !ThreadId
 
otherCap :: !Int
 
ThreadLabel 
CreateSparkThread 

Fields

sparkThread :: !ThreadId
 
SparkCounters 
SparkCreate 
SparkDud 
SparkOverflow 
SparkRun 
SparkSteal 

Fields

victimCap :: !Int
 
SparkFizzle 
SparkGC 
TaskCreate 

Fields

taskId :: TaskId
 
cap :: !Int
 
tid :: !KernelThreadId
 
TaskMigrate 

Fields

taskId :: TaskId
 
cap :: !Int
 
new_cap :: !Int
 
TaskDelete 

Fields

taskId :: TaskId
 
RequestSeqGC 
RequestParGC 
StartGC 
GCWork 
GCIdle 
GCDone 
EndGC 
GlobalSyncGC 
GCStatsGHC 

Fields

heapCapset :: !Capset
 
gen :: !Int
 
copied :: !Word64
 
slop :: !Word64
 
frag :: !Word64
 
parNThreads :: !Int
 
parMaxCopied :: !Word64
 
parTotCopied :: !Word64
 
HeapAllocated 

Fields

heapCapset :: !Capset
 
allocBytes :: !Word64
 
HeapSize 

Fields

heapCapset :: !Capset
 
sizeBytes :: !Word64
 
HeapLive 

Fields

heapCapset :: !Capset
 
liveBytes :: !Word64
 
HeapInfoGHC 
CapCreate 

Fields

cap :: !Int
 
CapDelete 

Fields

cap :: !Int
 
CapDisable 

Fields

cap :: !Int
 
CapEnable 

Fields

cap :: !Int
 
CapsetCreate 

Fields

capset :: !Capset
 
capsetType :: CapsetType
 
CapsetDelete 

Fields

capset :: !Capset
 
CapsetAssignCap 

Fields

capset :: !Capset
 
cap :: !Int
 
CapsetRemoveCap 

Fields

capset :: !Capset
 
cap :: !Int
 
RtsIdentifier 

Fields

capset :: !Capset
 
rtsident :: String
 
ProgramArgs 

Fields

capset :: !Capset
 
args :: [String]
 
ProgramEnv 

Fields

capset :: !Capset
 
env :: [String]
 
OsProcessPid 

Fields

capset :: !Capset
 
pid :: !PID
 
OsProcessParentPid 

Fields

capset :: !Capset
 
ppid :: !PID
 
WallClockTime 

Fields

capset :: !Capset
 
sec :: !Word64
 
nsec :: !Word32
 
Message 

Fields

msg :: String
 
UserMessage 

Fields

msg :: String
 
UserMarker 

Fields

markername :: String
 
InternString 

Fields

str :: String
 
sId :: !StringId
 
MerStartParConjunction 

Fields

dyn_id :: !ParConjDynId
 
static_id :: !ParConjStaticId
 
MerEndParConjunction 

Fields

dyn_id :: !ParConjDynId
 
MerEndParConjunct 

Fields

dyn_id :: !ParConjDynId
 
MerCreateSpark 

Fields

dyn_id :: !ParConjDynId
 
spark_id :: !SparkId
 
MerFutureCreate 

Fields

future_id :: !FutureId
 
name_id :: !StringId
 
MerFutureWaitNosuspend 

Fields

future_id :: !FutureId
 
MerFutureWaitSuspended 

Fields

future_id :: !FutureId
 
MerFutureSignal 

Fields

future_id :: !FutureId
 
MerLookingForGlobalThread 
MerWorkStealing 
MerLookingForLocalSpark 
MerReleaseThread 

Fields

thread_id :: !ThreadId
 
MerCapSleeping 
MerCallingMain 
PerfName 

Fields

perfNum :: !PerfEventTypeNum
 
name :: String
 
PerfCounter 

Fields

perfNum :: !PerfEventTypeNum
 
tid :: !KernelThreadId
 
period :: !Word64
 
PerfTracepoint 

Fields

perfNum :: !PerfEventTypeNum
 
tid :: !KernelThreadId
 

Instances

newtype Header Source

Constructors

Header 

Fields

eventTypes :: [EventType]
 

Instances

data Data Source

Constructors

Data 

Fields

events :: [Event]
 

Instances

Reading and writing event logs

Utilities

data CapEvent Source

An event annotated with the Capability that generated it, if any

Constructors

CapEvent 

Fields

ce_cap :: Maybe Int
 
ce_event :: Event
 

Instances

sortGroups :: [(Maybe Int, [Event])] -> [CapEvent] Source

Sort the raw event stream by time, annotating each event with the capability that generated it.

Printing

Perf events

nEVENT_PERF_NAME :: EventTypeNum Source

nEVENT_PERF_COUNTER :: EventTypeNum Source

sz_perf_num :: EventTypeSize Source

sz_kernel_tid :: EventTypeSize Source