32#include <drizzled/plugin.h>
33#include "global_stats.h"
35GlobalStats::GlobalStats()
37 user_commands=
new UserCommands();
40GlobalStats::GlobalStats(
const GlobalStats &global_stats)
42 user_commands=
new UserCommands(*global_stats.user_commands);
45GlobalStats::~GlobalStats()
57 user_commands->merge(global_stats->getUserCommands());
60void GlobalStats::updateUserCommands(
ScoreboardSlot *scoreboard_slot)
62 user_commands->merge(scoreboard_slot->getUserCommands());