db.getProfilingStatus() in mongoDB

getProfilingStatus()

This method returns the current profile level and slowOpThresholdMs setting.


Syntax:

db.getProfilingStatus()


Example

MongoDB

db.getProfilingStatus()

Output:

{ "was" : 0, "slowms" : 100, "sampleRate" : 1 }


No comments:

Post a Comment