public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
Search Repo:
Add profiler script and script to run through valgrind to check mem leaks.
macournoyer (author)
Sat Feb 09 21:15:50 -0800 2008
commit  d6d9661620f37b5060631aa592c57374cafd0e25
tree    da53c57b3218ee4243275050ee36b2088fa71d3f
parent  be7b246818985588590e4b520e46d2c81ed734b7
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
0
@@ -0,0 +1,14 @@
0
+#!/usr/bin/env ruby
0
+# Script to profile thin using ruby-prof.
0
+# Takes the same arguments as the thin script.
0
+require 'rubygems'
0
+require 'ruby-prof'
0
+
0
+# Profile the code
0
+result = RubyProf.profile do
0
+ load 'bin/thin'
0
+end
0
+
0
+# Print a graph profile to text
0
+printer = RubyProf::GraphPrinter.new(result)
0
+printer.print(STDOUT, 0)
0
\ No newline at end of file
...
 
 
0
...
1
2
3
0
@@ -0,0 +1,2 @@
0
+#!/usr/bin/env bash
0
+valgrind --tool=memcheck --leak-check=yes --show-reachable=no --num-callers=15 --track-fds=yes ruby bin/thin $@
0
\ No newline at end of file

Comments

    No one has commented yet.