~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/stats_schema.h

  • Committer: Joseph Daly
  • Date: 2010-08-18 02:17:48 UTC
  • mto: (1725.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1726.
  • Revision ID: jdaly@rx7-20100818021748-f07775vmvq1o6vq9
add memory usage

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
  LoggingStats *outer_logging_stats;
180
180
};
181
181
 
 
182
class ScoreboardStatsTool : public drizzled::plugin::TableFunction
 
183
{
 
184
public:
 
185
 
 
186
  ScoreboardStatsTool(LoggingStats *logging_stats);
 
187
 
 
188
  class Generator : public drizzled::plugin::TableFunction::Generator
 
189
  {
 
190
  public:
 
191
    Generator(drizzled::Field **arg, LoggingStats *logging_stats);
 
192
 
 
193
    bool populate();
 
194
  private:
 
195
    LoggingStats *inner_logging_stats;
 
196
    bool is_last_record;
 
197
  };
 
198
 
 
199
  Generator *generator(drizzled::Field **arg)
 
200
  {
 
201
    return new Generator(arg, outer_logging_stats);
 
202
  }
 
203
private:
 
204
  LoggingStats *outer_logging_stats;
 
205
};
 
206
 
182
207
#endif /* PLUGIN_LOGGING_STATS_STATS_SCHEMA_H */