diff --git a/source/reference/method/db.setProfilingLevel.txt b/source/reference/method/db.setProfilingLevel.txt index 38e6c76ed9b..3cb8a237de8 100644 --- a/source/reference/method/db.setProfilingLevel.txt +++ b/source/reference/method/db.setProfilingLevel.txt @@ -29,22 +29,26 @@ Definition - Description - * - ``level`` + * - :ref:`level ` - integer - - Configures the profiler level. + - .. _set-profiling-level-level: + + Configures the profiler level. The following profiler levels are available: .. include:: /includes/database-profiler-levels.rst - * - ``options`` + * - :ref:`options ` - document or integer - - Optional. Accepts an integer or an options document. If an integer value is + - .. _set-profiling-level-options: + + Optional. Accepts an integer or an options document. If an integer value is passed as the ``options`` argument instead of a document, the value is assigned to ``slowms``. The following options are available: @@ -53,8 +57,11 @@ Definition :stub-columns: 1 :widths: 15 85 - * - slowms - - | Default: 100 + * - :ref:`slowms ` + + - .. _set-profiling-level-options-slowms: + + | Default: 100 | Type: integer .. include:: /includes/dbcommand-slowms-definition.rst @@ -63,8 +70,11 @@ Definition This argument affects the same setting as the configuration file option :setting:`~operationProfiling.slowOpThresholdMs`. - * - sampleRate - - | Default: 1.0 + * - :ref:`sampleRate ` + + - .. _set-profiling-level-options-sampleRate: + + | Default: 1.0 | Type: double The fraction of *slow* operations that should be profiled.