#include "../database_types.h"
#include <chrono>
#include <atomic>
#include <mutex>
#include <vector>
#include <unordered_map>
#include <memory>
#include <thread>
#include <condition_variable>
#include <functional>
#include <string>
Go to the source code of this file.
◆ MONITOR_QUERY
| #define MONITOR_QUERY |
( |
| query, |
|
|
| db_type ) |
Value:
RAII timer for measuring query execution time.
Definition at line 335 of file performance_monitor.h.
335 #define MONITOR_QUERY(query, db_type) \
336 database::monitoring::query_timer timer_(query, db_type)
◆ MONITOR_QUERY_ERROR
| #define MONITOR_QUERY_ERROR |
( |
| error | ) |
|
Value:
Definition at line 341 of file performance_monitor.h.
341 #define MONITOR_QUERY_ERROR(error) \
342 timer_.set_error(error)
◆ MONITOR_QUERY_RESULT
| #define MONITOR_QUERY_RESULT |
( |
| rows | ) |
|
Value: timer_.set_rows_affected(rows)
Definition at line 338 of file performance_monitor.h.
338 #define MONITOR_QUERY_RESULT(rows) \
339 timer_.set_rows_affected(rows)