def pmmap_ext(data)
    pmmap_ext = ['addr', 'perms', 'path', 'rss', 'size', 'pss', 
                 'shared_clean', 'shared_dirty', 'private_clean', 
                 'private_dirty', 'referenced', 'anonymous', 'swap']
    os_list = []
    data.each do |datum|
      os = OpenStruct.new
      pmmap_ext.each_index {|i| os[pmmap_ext[i]] = datum[i]}
      os_list.push(os)
    end
    os_list
  end
def pmmap_ext(data)
    pmmap_ext = ['addr', 'perms', 'path', 'rss', 'size', 'pss', 
                 'shared_clean', 'shared_dirty', 'private_clean', 
                 'private_dirty', 'referenced', 'anonymous', 'swap']
    os_list = []
    data.each do |datum|
      os = OpenStruct.new
      pmmap_ext.each_index {|i| os[pmmap_ext[i]] = datum[i]}
      os_list.push(os)
    end
    os_list
  end
data in pmmap_ext is an Array