code: function profilingInfo(db, options, callback) {
    try {
      db
        .collection('system.profile')
        .find({}, options)
        .toArray(callback);
    } catch (err) {
      return callback(err, null);
    }
  }
docs: Retrieve the current profiling information for MongoDB
  
  @method
  @param {Db} db The Db instance on which to retrieve the profiling info.
  @param {Object} [options] Optional settings. See Db.protoype.profilingInfo for a list of options.
  @param {Db~resultCallback} [callback] The command result callback.
  @deprecated Query the system.profile collection directly.