Skip to content

DOCS-13337 include example of comment #4368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions source/reference/method/db.setProfilingLevel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,26 @@ Definition

- Description

* - ``level``
* - :ref:`level <set-profiling-level-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 <set-profiling-level-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:
Expand All @@ -53,8 +57,11 @@ Definition
:stub-columns: 1
:widths: 15 85

* - slowms
- | Default: 100
* - :ref:`slowms <set-profiling-level-options-slowms>`

- .. _set-profiling-level-options-slowms:

| Default: 100
| Type: integer

.. include:: /includes/dbcommand-slowms-definition.rst
Expand All @@ -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>`

- .. _set-profiling-level-options-sampleRate:

| Default: 1.0
| Type: double

The fraction of *slow* operations that should be profiled.
Expand Down