~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/logging_stats.cc

  • 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:
219
219
 
220
220
static CumulativeUserStatsTool *cumulative_user_stats_tool= NULL;
221
221
 
 
222
static ScoreboardStatsTool *scoreboard_stats_tool= NULL;
 
223
 
222
224
static void enable(Session *,
223
225
                   drizzle_sys_var *,
224
226
                   void *var_ptr,
290
292
    return true;
291
293
  }
292
294
 
 
295
  scoreboard_stats_tool= new(nothrow)ScoreboardStatsTool(logging_stats);
 
296
  
 
297
  if (! scoreboard_stats_tool)
 
298
  {
 
299
    return true;
 
300
  }
 
301
 
293
302
  return false;
294
303
}
295
304
 
339
348
  context.add(session_status_tool);
340
349
  context.add(global_status_tool);
341
350
  context.add(cumulative_user_stats_tool);
 
351
  context.add(scoreboard_stats_tool);
342
352
 
343
353
  if (sysvar_logging_stats_enabled)
344
354
  {