| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Haxl.Core.Profile
Description
Implementation of lightweight profiling. Most users should import Haxl.Core instead.
Synopsis
- withLabel :: ProfileLabel -> GenHaxl u w a -> GenHaxl u w a
 - withFingerprintLabel :: Addr# -> Addr# -> GenHaxl u w a -> GenHaxl u w a
 - addProfileFetch :: forall r u w a. (DataSourceName r, Eq (r a), Hashable (r a), Typeable (r a)) => Env u w -> r a -> CallId -> Bool -> IO ()
 - incrementMemoHitCounterFor :: Env u w -> CallId -> Bool -> IO ()
 - collectProfileData :: ProfileLabel -> (Env u w -> IO (Result u w a)) -> Env u w -> IO (Result u w a)
 - profileCont :: (Env u w -> IO (Result u w a)) -> Env u w -> IO (Result u w a)
 
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 -> CallId -> Bool -> 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.