Created
October 10, 2014 10:24
-
-
Save iffyuva/13d8f0ba756dc5fb83f0 to your computer and use it in GitHub Desktop.
rails-rbkit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Gemfile b/Gemfile | |
index ec44331..4b7a8f1 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -65,6 +65,9 @@ group :development do | |
# for style-guide. Need coderay also. But, pry seems to import it. | |
gem 'kss', '~> 0.5.0' | |
+ | |
+ # for profiling. | |
+ gem 'rbkit', path: '/Users/yuva/nomads/rbkit' | |
end | |
gem "wicked", "~> 1.0.2" | |
diff --git a/Gemfile.lock b/Gemfile.lock | |
index 8d626bb..42fb7f8 100644 | |
--- a/Gemfile.lock | |
+++ b/Gemfile.lock | |
@@ -100,6 +100,11 @@ GIT | |
sanity-checks (0.0.1) | |
rack (~> 1.5.2) | |
+PATH | |
+ remote: /Users/yuva/nomads/rbkit | |
+ specs: | |
+ rbkit (0.0.1) | |
+ | |
GEM | |
remote: https://rubygems.org/ | |
specs: | |
@@ -641,6 +646,7 @@ DEPENDENCIES | |
rails_legit (~> 0.0.4) | |
rapidfire! | |
rb-fsevent (~> 0.9.3) | |
+ rbkit! | |
rspec-rails (~> 2.12.2) | |
sanity-checks! | |
sass-rails (~> 4.0.0.rc1) | |
diff --git a/config/initializers/rbkit.rb b/config/initializers/rbkit.rb | |
new file mode 100644 | |
index 0000000..35e2f36 | |
--- /dev/null | |
+++ b/config/initializers/rbkit.rb | |
@@ -0,0 +1,7 @@ | |
+require 'rbkit' | |
+ | |
+if `lsof -i:5555`.empty? | |
+ Rbkit.start_profiling(5555) | |
+else | |
+ p 'rbkit already started' | |
+end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment