quasardb C API
|
Data Structures | |
struct | qdb_perf_measurement_t |
A structure representing a performance measurement database. More... | |
struct | qdb_perf_profile_t |
A structure representing a continuous list of performance measurements. More... | |
Typedefs | |
typedef enum qdb_perf_label_t | qdb_perf_label_t |
The possible labels for a performance measurement. | |
Enumerations | |
enum | qdb_perf_label_t |
The possible labels for a performance measurement. | |
Functions | |
QDB_API_LINKAGE qdb_error_t | qdb_perf_get_profiles (qdb_handle_t handle, qdb_perf_profile_t **profiles, qdb_size_t *count) |
Gets the list of profiles for the the given handle. More... | |
QDB_API_LINKAGE qdb_error_t | qdb_perf_clear_all_profiles (qdb_handle_t handle) |
Clears all accumulated profile information in the associated handle. More... | |
QDB_API_LINKAGE qdb_error_t | qdb_perf_enable_client_tracking (qdb_handle_t handle) |
Enables for all threads client side collection of performance data sent by the server. More... | |
QDB_API_LINKAGE qdb_error_t | qdb_perf_disable_client_tracking (qdb_handle_t handle) |
Disables client side collection of performance data sent by the server on the provided handle. More... | |
QDB_API_LINKAGE qdb_error_t qdb_perf_clear_all_profiles | ( | qdb_handle_t | handle | ) |
Clears all accumulated profile information in the associated handle.
handle | A valid handle previously initialized by qdb_open or qdb_open_tcp. |
QDB_API_LINKAGE qdb_error_t qdb_perf_disable_client_tracking | ( | qdb_handle_t | handle | ) |
Disables client side collection of performance data sent by the server on the provided handle.
By default the client will not store performance data returned by the server.
handle | A valid handle previously initialized by qdb_open or qdb_open_tcp. |
QDB_API_LINKAGE qdb_error_t qdb_perf_enable_client_tracking | ( | qdb_handle_t | handle | ) |
Enables for all threads client side collection of performance data sent by the server.
By default the client will not store performance data returned by the server.
handle | A valid handle previously initialized by qdb_open or qdb_open_tcp. |
QDB_API_LINKAGE qdb_error_t qdb_perf_get_profiles | ( | qdb_handle_t | handle, |
qdb_perf_profile_t ** | profiles, | ||
qdb_size_t * | count | ||
) |
Gets the list of profiles for the the given handle.
The profiles that have been extracted will be cleared in the given handle. This means the next call to this function will return new profile information only.
The handle must be connected.
handle | A valid handle previously initialized by qdb_open or qdb_open_tcp. |
profiles | A pointer to a pointer of profiles list that will be allocated by the API and must be release with qdb_release |
count | A pointer to an integer that will receive the number of returned profiles. |