I_S.profiling has NULL for getrusage statistics

Bug #987749 reported by Raghavendra D Prabhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.1
Invalid
Undecided
Unassigned
5.5
Triaged
Medium
Unassigned
5.6
New
Medium
Unassigned
5.7
New
Medium
Unassigned

Bug Description

While working on an issue, it took me sometime to figure out why I_S.profiling has NULL for getrusage statistics.

Finally, checking the code, I was able to find out.

bool PROFILING::enabled_getrusage()
{
  return ((thd->variables.log_slow_verbosity & (ULL(1) << SLOG_V_PROFILING_USE_GETRUSAGE)) != 0);
}

 (I didn't look/search for log_slow_verbosity earlier because profiling is not related to slow logging (point#2 below))

Now:

1. Introduce a different variable for profiling -- I see boolean variables -- profiling_server and profiling_use_getrusage (http://www.percona.com/doc/percona-server/5.1/diagnostics/slow_extended.html?id=percona-server:features:slow_extended_51&redirect=2#log_slow_verbosity) but they don't exist / work.

2. Add separate documentation for profiling and getrusage. Currently it is mentioned under slow query logging which is independent from query profiling.

Revision history for this message
Alexey Kopytov (akopytov) wrote :

It's another regression introduced in 5.5 -- profiling_use_getrusage should work as advertised in 5.1. The regression was introduced by http://bazaar.launchpad.net/~percona-core/percona-server/5.5/revision/33.1.5

tags: added: regression
summary: - [Documentation] Relation between show profile/I_S.profiling and
- log_slow_verbosity is undocumented
+ I_S.profiling has NULL for getrusage statistics
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1246

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.