#!/usr/bin/env rubyabort"usage: #{__FILE__} <memory_bundle_mem_file_name>"unlessARGV.length==1memory_bundle_mem_file_name=ARGV.firstfull_report=File.open(memory_bundle_mem_file_name).readstats=/TOP: (?<total_mibs_str>.*) MiB/.match(full_report)abort'failed to process the benchmark output'unlessstatsputs"total_memory_used_by_dependencies_on_boot_prod_env_mb #{stats[:total_mibs_str].to_f.round(1)}"