haxl-2.1.2.0: A Haskell library for efficient, concurrent, and concise data access.

Safe HaskellNone
LanguageHaskell2010

Haxl.Core.Profile

Description

Implementation of lightweight profiling. Most users should import Haxl.Core instead.

Synopsis

Documentation

withLabel :: ProfileLabel -> GenHaxl u w a -> GenHaxl u w a Source #

Label a computation so profiling data is attributed to the label.

withFingerprintLabel :: Addr# -> Addr# -> GenHaxl u w a -> GenHaxl u w a Source #

Label a computation so profiling data is attributed to the label. Intended only for internal use by memoFingerprint.

addProfileFetch :: forall r u w a. (DataSourceName r, Eq (r a), Hashable (r a), Typeable (r a)) => Env u w -> r a -> IO () Source #

collectProfileData :: ProfileLabel -> (Env u w -> IO (Result u w a)) -> Env u w -> IO (Result u w a) Source #

Collect profiling data and attribute it to given label.

profileCont :: (Env u w -> IO (Result u w a)) -> Env u w -> IO (Result u w a) Source #