module PhusionPassenger::Utils::NativeSupportUtils

def process_times

Wrapper for getrusage().
def process_times
  return PhusionPassenger::NativeSupport.process_times
end

def process_times

def process_times
  times = Process.times
  return ProcessTimes.new((times.utime * 1_000_000).to_i,
    (times.stime * 1_000_000).to_i)
end

def split_by_null_into_hash(data)

string using the null character as the delimitor.
Split the given string into an hash. Keys and values are obtained by splitting the
def split_by_null_into_hash(data)
  return PhusionPassenger::NativeSupport.split_by_null_into_hash(data)
end

def split_by_null_into_hash(data)

def split_by_null_into_hash(data)
  args = data.split(NULL, -1)
  args.pop
  return Hash[*args]
end