hp2any-core-0.10.1: Heap profiling helper library

Profiling.Heap.Network

Description

This module provides functions to send and receive profiling information over the network. Currently the messages can only encode SinkInput data.

Synopsis

Documentation

data Message Source

Constructors

Stream SinkInput 

Instances

sendMsg :: Handle -> Message -> IO ()Source

Send a structured message over the network. Can also be used for logging into a file.

recvMsg :: Handle -> IO (Maybe Message)Source

Receive a structured message over the network. Can also be used for parsing from a file.

readMsg :: String -> Maybe MessageSource

Parse a message.

writeMsg :: Message -> StringSource

Serialise a message.

putStream :: SinkInput -> MessageSource

Convert from callback data to message.

getStream :: Message -> Maybe SinkInputSource

Extract callback data from message, if applicable.