]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/dev/cputrace.rst: Documentation for groups 66261/head
authorAdam Kupczyk <akupczyk@ibm.com>
Wed, 4 Mar 2026 17:30:59 +0000 (17:30 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Tue, 10 Mar 2026 14:46:14 +0000 (14:46 +0000)
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
doc/dev/cputrace.rst

index 2ca57bf0913b2a330814de92d8a6ad1db110dd96..df19a48a54c9a4797b1aedc1bd2c7b3f2004af2b 100644 (file)
@@ -174,6 +174,27 @@ To later access the collected measurements for a given name, use:
     // m->dump_to_stringstream(ss, HW_PROFILE_INS|HW_PROFILE_CYC);
   }
 
+Groups of measurements
+----------------------
+
+Keeps all measurements together. Allows to very easily add a CPU probe.
+This method is limited to measuring only scopes of execution, where RAII rules can be used.
+
+Define your measurements group:
+
+.. code-block:: cpp
+
+  cpucounter_group BlueStore::cputrace_bluestore("bluestore");
+
+And put some probes:
+
+.. code-block:: cpp
+
+  MEASURE_SCOPE(cputrace_bluestore, txc_state_proc)
+
+The values are easily available for read and reset via admin socket commands.
+Unlike named measurements, probes in groups cannot be stopped and started.
+
 Admin socket integration
 ------------------------