~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/performance_dictionary/session_usage.cc

  • Committer: Brian Aker
  • Date: 2010-09-23 21:03:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1791.
  • Revision ID: brian@tangent.org-20100923210357-sgb63km967p0qjue
Fix for data being too long in output column, plus I have added a
"have_linux" for tests to use.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
void performance_dictionary::SessionUsage::Generator::publish(const std::string &sql, const struct rusage &usage_arg)
84
84
{
85
85
  /* SQL */
86
 
  push(sql);
 
86
  push(sql.substr(0, FUNCTION_NAME_LEN));
87
87
 
88
88
  /* USER_TIME_USED_SECONDS */
89
89
  push(static_cast<int64_t>(usage_arg.ru_utime.tv_sec));