mongodb / v3.6 / reference / reference-method-db.getProfilingStatus.html

db.getProfilingStatus()

db. getProfilingStatus ( )
Returns: The current profile level, slowOpThresholdMs setting, and slowOpSampleRate setting.