On this page
Parameter Type Description
integer Specifies a profiling level, which is either
0for no profiling,
1for only slow operations, or
2for all operations.
integer Optional. Sets the threshold in milliseconds for the profile to consider a query or operation to be slow.
The level chosen can affect performance. It also can allow the server to write the contents of queries to the log, which might have information security implications for your deployment.
slowOpThresholdMsoption to set the threshold for the profiler to consider a query “slow.” Specify this value in milliseconds to override the default, 100ms.
mongodwrites the output of the database profiler to the