36
36
#include "logging_stats.h"
38
class CommandsTool : public drizzled::plugin::TableFunction
40
class CurrentCommandsTool : public drizzled::plugin::TableFunction
43
LoggingStats *logging_stats;
47
CurrentCommandsTool(LoggingStats *logging_stats);
49
class Generator : public drizzled::plugin::TableFunction::Generator
52
Generator(drizzled::Field **arg, LoggingStats *logging_stats);
56
void setVectorIteratorsAndLock(uint32_t bucket_number);
58
Scoreboard *current_scoreboard;
59
uint32_t current_bucket;
61
std::vector<ScoreboardSlot *>::iterator scoreboard_vector_it;
62
std::vector<ScoreboardSlot *>::iterator scoreboard_vector_end;
63
std::vector<std::vector<ScoreboardSlot* >* >::iterator vector_of_scoreboard_vectors_it;
64
std::vector<std::vector<ScoreboardSlot* >* >::iterator vector_of_scoreboard_vectors_end;
65
pthread_rwlock_t* current_lock;
68
Generator *generator(drizzled::Field **arg)
70
return new Generator(arg, logging_stats);
74
class CumulativeCommandsTool : public drizzled::plugin::TableFunction
41
77
LoggingStats *outer_logging_stats;
45
CommandsTool(LoggingStats *logging_stats);
81
CumulativeCommandsTool(LoggingStats *logging_stats);
47
83
class Generator : public drizzled::plugin::TableFunction::Generator
50
86
Generator(drizzled::Field **arg, LoggingStats *logging_stats);
56
90
LoggingStats *logging_stats;
57
91
uint32_t record_number;
92
uint32_t total_records;
60
95
Generator *generator(drizzled::Field **arg)