resources/memory/weight_balancing_memory_heuristic.rb
# Creates an instance based on a hash containing memory settings, and the application's memory size in
# $MEMORY_LIMIT.
#
# @param [Hash<String, String>] sizes any sizes specified by the user
# @param [Hash<String, Numeric>] heuristics the memory heuristics specified by the user
# @param [Array<String>] valid_types the valid types of memory
# @param [Hash<String, String>] java_opts a mapping from a memory type to a +JAVA_OPTS+ option
Creates an instance based on a hash containing memory settings, and the application's memory size in
$MEMORY_LIMIT.
Creates an instance based on a hash containing memory settings and the application ' s memory size in $MEMORY_LIMIT .
def issue_close_to_default_warnings(buckets)
    total_weighting = calculate_total_weighting buckets
    buckets.each do |type, bucket|
      check_close_to_default(type, bucket, total_weighting) if type != 'stack' && @sizes[type]
    end
  end
def issue_close_to_default_warnings ( buckets ) total_weighting = calculate_total_weighting buckets buckets . each do | type , bucket | check_close_to_default ( type , bucket , total_weighting ) if type != 'stack' && @sizes [ type ] end end
Creates an instance based on a hash containing memory settings, and the application's memory size in
$MEMORY_LIMIT.
Creates an instance based on a hash containing memory settings and the application ' s memory size in $MEMORY_LIMIT .
buckets
java_opts a mapping from a memory type to a +JAVA_OPTS+ option
java_opts a mapping from a memory type to a + JAVA_OPTS + option