summaryrefslogtreecommitdiffstats
path: root/src/test/bench_log.cc
diff options
context:
space:
mode:
authorIgor Podoski <igor.podoski@ts.fujitsu.com>2015-12-22 09:54:42 +0100
committerIgor Podoski <igor.podoski@ts.fujitsu.com>2016-01-05 15:15:36 +0100
commit4a4b447e35bbf801e7c9d5d1fadd168f394d85bd (patch)
treee699e6909f95164acbd359e3459fb42b44438f8a /src/test/bench_log.cc
parentMerge remote-tracking branch 'origin/jewel' (diff)
downloadceph-4a4b447e35bbf801e7c9d5d1fadd168f394d85bd.tar.xz
ceph-4a4b447e35bbf801e7c9d5d1fadd168f394d85bd.zip
threads: add thread names
Adding names to threads simplifies cpu usage realtime tracking e.g. top -H -p <OSD_PID> This commit changes Thread.create() method forcing to pass thread name. Signed-off-by: Igor Podoski <igor.podoski@ts.fujitsu.com>
Diffstat (limited to 'src/test/bench_log.cc')
-rw-r--r--src/test/bench_log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/bench_log.cc b/src/test/bench_log.cc
index 2cbfa1e77d2..a80e14a5e81 100644
--- a/src/test/bench_log.cc
+++ b/src/test/bench_log.cc
@@ -46,7 +46,7 @@ int main(int argc, const char **argv)
list<T*> ls;
for (int i=0; i<threads; i++) {
T *t = new T(num);
- t->create();
+ t->create("t");
ls.push_back(t);
}