Sha256: a8d889a15dd204f18770a5d465b03e384f1cca4c67450f08ffb8bca6173d3fdd
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true # Simply starts the provided program as-is, but sets RUBYLIB so that it will be # profiled by ruby_memprofiler_pprof. require 'shellwords' base_path = File.expand_path("../lib", __dir__) profile_lib = File.join(base_path, 'ruby_memprofiler_pprof', 'profile_app.rb') opts = [ "-I#{Shellwords.escape base_path}", "-r#{Shellwords.escape profile_lib}" ] ENV['RUBYOPT'] = ([ENV.fetch('RUBYOPT', nil)] + opts).compact.join(" ") exec *ARGV
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_memprofiler_pprof-0.0.3 | libexec/ruby_memprofiler_pprof_profile |
ruby_memprofiler_pprof-0.0.1 | libexec/ruby_memprofiler_pprof_profile |