Module: kamailio Branch: master Commit: d4915b129cc3262a822d53e96b5f52df7b9b23fc URL: https://github.com/kamailio/kamailio/commit/d4915b129cc3262a822d53e96b5f52df7b9b23fc
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2025-12-01T11:32:22+01:00 benchmark: docs updated about measurment working inside process context --- Modified: src/modules/benchmark/doc/benchmark_admin.xml --- Diff: https://github.com/kamailio/kamailio/commit/d4915b129cc3262a822d53e96b5f52df7b9b23fc.diff Patch: https://github.com/kamailio/kamailio/commit/d4915b129cc3262a822d53e96b5f52df7b9b23fc.patch --- diff --git a/src/modules/benchmark/doc/benchmark_admin.xml b/src/modules/benchmark/doc/benchmark_admin.xml index 10f94b2b5c4..5c1f11f342f 100644 --- a/src/modules/benchmark/doc/benchmark_admin.xml +++ b/src/modules/benchmark/doc/benchmark_admin.xml @@ -22,9 +22,18 @@ can log profiling information for every function. </para> <para> - The duration between calls to start_timer and log_timer is stored and logged + The duration between calls to bm_start_timer() and bm_log_timer() is stored and logged via &kamailio;'s logging facility. Please note that all durations are given as - microseconds (don't confuse with milliseconds!). + microseconds (do not confuse with milliseconds). Support for nanosecond + precission can be enabled by compiling with librt (see the Makefile of + the module). + </para> + <para> + Note: the measurement can be done only in the context of the same application + process. It does not work to measure the duration of execution between + actions before suspending the transaction in one process and after resuming + the processing in another process (e.g., functions from async or http_async_client + modules). </para> </section> <section> @@ -431,4 +440,3 @@ bm_log_timer("usrloc-lookup"); </example> </section> </chapter> - _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
