]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: filtering in `perf dump` 3499/head
authorJohn Spray <john.spray@redhat.com>
Tue, 27 Jan 2015 11:13:59 +0000 (11:13 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 27 Jan 2015 11:17:10 +0000 (11:17 +0000)
commita8e257975abcb76e3db9f3d38c25faf372942f57
treee9c8f3459fe064d07546282f72fd0b9861ecee81
parent5a654e321fb81bd0a9f05556aabb7c02a1530a8a
common: filtering in `perf dump`

So that we can get out a particular subsystem
or particular counter without dumping
everything.  Should make tests that watch perf
counters much less spammy!

`logger` and `counter` params are used with
an exact comparison here but the interface
should be amenable to extending to e.g. globbing
if we wanted to in the future.

Also tidy up some iterator while()s into for()s.

Signed-off-by: John Spray <john.spray@redhat.com>
src/common/ceph_context.cc
src/common/perf_counters.cc
src/common/perf_counters.h