userver: userver/utils/trx_tracker.hpp File Reference
Loading...
Searching...
No Matches
trx_tracker.hpp File Reference

Detailed Description

Tracking for heavy operations while having active transactions.

Definition in file trx_tracker.hpp.

Go to the source code of this file.

#include <optional>
#include <thread>
#include <userver/utils/impl/source_location.hpp>
#include <userver/utils/statistics/rate.hpp>
+ This graph shows which files directly or indirectly include this file:

Classes

class  utils::trx_tracker::TransactionLock
 Class for incrementing and decrementing transaction counter. More...
 
class  utils::trx_tracker::CheckDisabler
 Disable check for active transactions. More...
 
struct  utils::trx_tracker::TransactionTrackerStatistics
 Statistics for transaction tracker. More...
 

Namespaces

namespace  utils
 Utilities.
 
namespace  utils::trx_tracker
 Tracking for heavy operations while having active transactions.
 

Functions

void utils::trx_tracker::CheckNoTransactions (utils::impl::SourceLocation location=utils::impl::SourceLocation::Current())
 Check for active transactions.
 
void utils::trx_tracker::CheckNoTransactions (std::string_view location)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
TransactionTrackerStatistics utils::trx_tracker::GetStatistics () noexcept
 Get statistics for transaction tracker.
 
void utils::trx_tracker::ResetStatistics ()
 Reset statistics for transaction tracker.