| Portability | ghc |
|---|---|
| Stability | experimental |
| Maintainer | florbitous@gmail.com |
| Safe Haskell | None |
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).
- readHeader :: Handle -> IO FileHeader
- readAttributes :: Handle -> FileHeader -> IO [FileAttr]
- readAttributeIDs :: Handle -> FileAttr -> IO [EventID]
- readEventHeader :: Handle -> ByteCount64 -> IO EventHeader
- readEvent :: Handle -> ByteCount64 -> SampleTypeBitMap -> IO Event
- readEventTypes :: Handle -> FileHeader -> IO [TraceEventType]
Documentation
Arguments
| :: Handle | Input file. |
| -> IO FileHeader |
Read the perf data FileHeader from the input file handle.
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.
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.
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.
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.
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.