Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data HistogramName Source #
HistogramName | |
|
Instances
Eq HistogramName Source # | |
Defined in Tendermint.SDK.BaseApp.Metrics (==) :: HistogramName -> HistogramName -> Bool # (/=) :: HistogramName -> HistogramName -> Bool # | |
Ord HistogramName Source # | |
Defined in Tendermint.SDK.BaseApp.Metrics compare :: HistogramName -> HistogramName -> Ordering # (<) :: HistogramName -> HistogramName -> Bool # (<=) :: HistogramName -> HistogramName -> Bool # (>) :: HistogramName -> HistogramName -> Bool # (>=) :: HistogramName -> HistogramName -> Bool # max :: HistogramName -> HistogramName -> HistogramName # min :: HistogramName -> HistogramName -> HistogramName # | |
IsString HistogramName Source # | |
Defined in Tendermint.SDK.BaseApp.Metrics fromString :: String -> HistogramName # |
data Metrics m a where Source #
IncCount :: CountName -> Metrics m () | Increments the count of a specific message |
WithTimer :: HistogramName -> m a -> Metrics m a | Times an action and records it in a histogram |
Instances
type DefiningModule Metrics Source # | |
Defined in Tendermint.SDK.BaseApp.Metrics type DefiningModule Metrics = "Tendermint.SDK.BaseApp.Metrics" |
withTimer :: forall r a. MemberWithError Metrics r => HistogramName -> Sem r a -> Sem r a Source #