code: public void setProfileTaskRange(boolean isMap, String newValue) {
      // parse the value to make sure it is legal
      new Configuration.IntegerRanges(newValue);
      set((isMap ? "mapred.task.profile.maps" : "mapred.task.profile.reduces"),
          newValue);
    }
docs: Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  must also be called.
  @param newValue a set of integer ranges of the map ids