From 56c38f87b2ba88c1eccb5cfb7e123a6bab9a46b9 Mon Sep 17 00:00:00 2001 From: Florian Weingarten Date: Sun, 10 May 2015 02:30:43 +0000 Subject: [PATCH] Add script/rubyprof to generate cachegrind callgraphs --- Gemfile | 1 + script/rubyprof | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 script/rubyprof diff --git a/Gemfile b/Gemfile index 9e96f241..f1e43a12 100644 --- a/Gemfile +++ b/Gemfile @@ -28,6 +28,7 @@ gem 'test-unit' if RUBY_PLATFORM =~ /cygwin/ || RUBY_VERSION.start_with?("2.2") gem 'rspec-mocks' if ENV['BENCHMARK'] + gem 'ruby-prof' gem 'rbtrace' gem 'stackprof' gem 'benchmark-ips' diff --git a/script/rubyprof b/script/rubyprof new file mode 100755 index 00000000..cac68ae7 --- /dev/null +++ b/script/rubyprof @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +export BENCHMARK=1 + +TEST_SCRIPT="Jekyll::Commands::Build.process({'source' => 'site', 'full_rebuild' => true})" + +RUBY=$(cat <