code: function profilingLevel(db, options, callback) {
    executeCommand(db, { profile: -1 }, options, (err, doc) => {
      if (err == null && doc.ok === 1) {
        const was = doc.was;
        if (was === 0) return callback(null, 'off');
        if (was === 1) return callback(null, 'slow_only');
        if (was === 2) return callback(null, 'all');
        return callback(new Error('Error: illegal profiling level value ' + was), null);
      } else {
        err != null ? callback(err, null) : callback(new Error('Error with profile command'), null);
      }
    });
  }
docs: Retrieve the current profiling level for MongoDB
  
  @method
  @param {Db} db The Db instance on which to retrieve the profiling level.
  @param {Object} [options] Optional settings. See Db.prototype.profilingLevel for a list of options.
  @param {Db~resultCallback} [callback] The command result callback