This gem can check the dependency files.
require RUBY_VERSION >= 2.7.0
gem install load_tracer
clone this repository.
git clone https://github.com/siman-man/load_tracer.git
build gem.
bundle exec rake build
install gem.
gem install pkg/load_tracer-0.6.0.gem
require 'load_tracer'
report = LoadTracer.trace do
require 'net/http'
end
pp reportrequire 'load_tracer'
puts LoadTracer.trace(format: :dot) { require 'prime' }ruby example.rb | dot -Tpng -o example.png | open example.png
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the LoadTracer project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
