0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Add some doc to setProfilingLevel().

This commit is contained in:
Richard Kreuter 2010-04-08 14:59:50 -04:00
parent 6378b9da4c
commit 19da03b95e

View File

@ -310,9 +310,10 @@ DB.prototype.printCollectionStats = function(){
* <p>Levels :</p> * <p>Levels :</p>
* <ul> * <ul>
* <li>0=off</li> * <li>0=off</li>
* <li>1=log very slow (>100ms) operations</li> * <li>1=log very slow operations; optional argument slowms specifies slowness threshold</li>
* <li>2=log all</li> * <li>2=log all</li>
* @param {String} level Desired level of profiling * @param {String} level Desired level of profiling
* @param {String} slowms For slow logging, query duration that counts as slow (default 100ms)
* @return SOMETHING_FIXME or null on error * @return SOMETHING_FIXME or null on error
*/ */
DB.prototype.setProfilingLevel = function(level,slowms) { DB.prototype.setProfilingLevel = function(level,slowms) {