#include "controller_stats.h"
#include "timeseries.h"
#include "stats.h"
#include "logging.h"
#include "controller_mysql.h"
#include "controller_dfg.h"
#include "stat_msg_handler.h"
#include <stdbool.h>
Go to the source code of this file.
|
static struct stat_type * | get_stat_type (enum stat_id id) |
|
static struct timed_rrdb * | get_stat (enum stat_id id, unsigned int item_id) |
|
struct timed_rrdb * | get_thread_stat (enum stat_id id, unsigned int runtime_id, unsigned int thread_id) |
|
struct timed_rrdb * | get_msu_stat (enum stat_id id, unsigned int msu_id) |
|
static int | unregister_stat (enum stat_id stat_id, unsigned int item_id) |
|
int | unregister_msu_stats (unsigned int msu_id) |
|
int | unregister_thread_stats (unsigned int thread_id, unsigned int runtime_id) |
|
int | register_stat (enum stat_id stat_id, unsigned int item_id) |
|
int | register_msu_stats (unsigned int msu_id, int msu_type_id, int thread_id, int runtime_id) |
|
int | register_thread_stats (unsigned int thread_id, unsigned int runtime_id) |
|
int | init_statistics () |
| Initializes the entire stats module. More...
|
|
void | show_stats (struct dfg_msu *msu) |
|
Value:
log_warn(
"Statistics not initialized"); \
return -1; \
}
static bool stats_initialized
#define log_warn(fmt,...)
Definition at line 45 of file controller_stats.c.
struct timed_rrdb* get_thread_stat |
( |
enum stat_id |
id, |
|
|
unsigned int |
runtime_id, |
|
|
unsigned int |
thread_id |
|
) |
| |
Initializes the entire stats module.
MUST BE CALLED before runtime starts
Definition at line 192 of file controller_stats.c.
int register_msu_stats |
( |
unsigned int |
msu_id, |
|
|
int |
msu_type_id, |
|
|
int |
thread_id, |
|
|
int |
runtime_id |
|
) |
| |
int register_stat |
( |
enum stat_id |
stat_id, |
|
|
unsigned int |
item_id |
|
) |
| |
int register_thread_stats |
( |
unsigned int |
thread_id, |
|
|
unsigned int |
runtime_id |
|
) |
| |
void show_stats |
( |
struct dfg_msu * |
msu | ) |
|
int unregister_msu_stats |
( |
unsigned int |
msu_id | ) |
|
static int unregister_stat |
( |
enum stat_id |
stat_id, |
|
|
unsigned int |
item_id |
|
) |
| |
|
static |
int unregister_thread_stats |
( |
unsigned int |
thread_id, |
|
|
unsigned int |
runtime_id |
|
) |
| |
bool stats_initialized = false |
|
static |