retry statistics for STM transactions

Version on this page:
LTS Haskell 12.22:
Stackage Nightly 2018-09-28:
Latest on Hackage:

See all snapshots stm-stats appears in

Maintained by Joachim Breitner

Module documentation for

There are no documented modules for this package.

This module provides functions that can replace calls to atomically and count how often the transaction was retried until it succeeded. It can emit warnings when transaction are retried more often than a given threshold, and provides global statistics across all transaction.

As an additional feature, if the transaction was named, transaction-related exceptions such as BlockedIndefinitelyOnSTM are replaced by variants that indicate which transaction caused the exception.


Added warnInSTMFunction to TrackSTMConf.
Bugfix with the global retry count warning.
Initial Release
Depends on 5 packages:
Used by 1 package:
comments powered byDisqus