Sha256: 70f2b8e2abc14b04bd02d7e6b3fa3f5fbe5938939bc476d911a569dfe16bcb04
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_memprofiler_pprof-0.0.4 | libexec/ruby_memprofiler_pprof_profile |