linux-perf-0.3: Read files generated by perf on Linux

Portabilityghc
Stabilityexperimental
Maintainerflorbitous@gmail.com
Safe HaskellNone

Profiling.Linux.Perf.Parse

Description

A library to parse and pretty print the contents of perf.data file, the output of the perf record command on Linux (Linux performance counter information).

Synopsis

Documentation

readHeaderSource

Arguments

:: Handle

Input file.

-> IO FileHeader 

Read the perf data FileHeader from the input file handle.

readAttributesSource

Arguments

:: Handle

Input file.

-> FileHeader

Perf file header containing the byte offset of the attribute data.

-> IO [FileAttr] 

Read the perf event attributes from the input file handle.

readAttributeIDsSource

Arguments

:: Handle

Input file.

-> FileAttr

File attribute containing the byte offset of the event ID data.

-> IO [EventID] 

Read the EventIDs from the input file handle.

readEventHeaderSource

Arguments

:: Handle

Input file.

-> ByteCount64

Byte offset from the start of the file to the start of the event header.

-> IO EventHeader 

Read an EventHeader from the input file handle.

readEventSource

Arguments

:: Handle

Input file.

-> ByteCount64

Offset from the start of the file to the start of the event.

-> SampleTypeBitMap

A bitmap indicating what data is stored in a sample event.

-> IO Event 

Read an event record from the input file handle.

readEventTypesSource

Arguments

:: Handle

Input file.

-> FileHeader

Perf file header containing the byte offset of the event type data.

-> IO [TraceEventType] 

Read the event type information from the input file handle.