Records one operation and its elapsed time on destruction.
More...
#include <StormByte/database/telemetry.hxx>
Records one operation and its elapsed time on destruction.
◆ OperationScope() [1/3]
@brief Start measuring one operation.
- Parameters
-
◆ OperationScope() [2/3]
| StormByte::Database::Telemetry::OperationScope::OperationScope |
( |
const OperationScope & | | ) |
|
|
delete |
Copy constructor is deleted.
◆ OperationScope() [3/3]
| StormByte::Database::Telemetry::OperationScope::OperationScope |
( |
OperationScope && | | ) |
|
|
delete |
Move constructor is deleted.
◆ ~OperationScope()
| StormByte::Database::Telemetry::OperationScope::~OperationScope |
( |
| ) |
|
|
noexcept |
Record the attempt when the scope ends.
◆ Complete()
| void StormByte::Database::Telemetry::OperationScope::Complete |
( |
bool | success, |
|
|
std::uint64_t | rows_returned = 0 ) |
|
noexcept |
Record the result and optional returned row count.
- Parameters
-
| success | Whether the operation succeeded. |
| rows_returned | Rows returned by this operation. |
The documentation for this class was generated from the following file: