rubyrun 0.9.0-mswin32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +13 -0
- data/README +77 -0
- data/Rakefile +241 -0
- data/bin/confgure +2 -0
- data/docs/rubyrun-0.9.0.htm +6344 -0
- data/docs/rubyrun-0.9.0.pdf +0 -0
- data/docs/rubyrun-0.9.0_files/colorschememapping.xml +2 -0
- data/docs/rubyrun-0.9.0_files/filelist.xml +29 -0
- data/docs/rubyrun-0.9.0_files/header.htm +141 -0
- data/docs/rubyrun-0.9.0_files/image001.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image002.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image003.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image004.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image005.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image006.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image007.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image008.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image009.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image010.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image011.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image012.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image013.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image014.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image015.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image016.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image017.png +0 -0
- data/docs/rubyrun-0.9.0_files/image018.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image019.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image020.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image021.jpg +0 -0
- data/docs/rubyrun-0.9.0_files/image022.png +0 -0
- data/docs/rubyrun-0.9.0_files/themedata.thmx +0 -0
- data/etc/rubyrun_opts.yml +132 -0
- data/ext/extconf.rb +4 -0
- data/ext/rubyrunnative__.bundle +0 -0
- data/ext/rubyrunnative__.c +154 -0
- data/ext/rubyrunnative__.def +2 -0
- data/ext/rubyrunnative__.h +36 -0
- data/ext/rubyrunnative__.so +0 -0
- data/ext/rubyrunnative__linux.so +0 -0
- data/html/classes/Module.html +174 -0
- data/html/classes/Object.html +151 -0
- data/html/classes/RubyRunBufferMgr__.html +182 -0
- data/html/classes/RubyRunCommander__.html +578 -0
- data/html/classes/RubyRunDad__.html +144 -0
- data/html/classes/RubyRunGlobals.html +248 -0
- data/html/classes/RubyRunHTMLWriter/RubyRunHTMLDevice.html +157 -0
- data/html/classes/RubyRunHTMLWriter.html +186 -0
- data/html/classes/RubyRunHTML__.html +198 -0
- data/html/classes/RubyRunInitializer__.html +821 -0
- data/html/classes/RubyRunInstrumentor__.html +576 -0
- data/html/classes/RubyRunMonitor__.html +298 -0
- data/html/classes/RubyRunRSS.html +302 -0
- data/html/classes/RubyRunReport__.html +294 -0
- data/html/classes/RubyRunTracer__.html +253 -0
- data/html/classes/RubyRunUtils__.html +376 -0
- data/html/created.rid +1 -0
- data/html/files/LICENSE.html +119 -0
- data/html/files/README.html +197 -0
- data/html/files/lib/rubyrun/rubyrun_buffer_mgr___rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_commander___rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_dad___rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_globals_rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_html___rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_html_writer___rb.html +108 -0
- data/html/files/lib/rubyrun/rubyrun_initializer___rb.html +112 -0
- data/html/files/lib/rubyrun/rubyrun_instrumentor___rb.html +116 -0
- data/html/files/lib/rubyrun/rubyrun_monitor___rb.html +116 -0
- data/html/files/lib/rubyrun/rubyrun_rb.html +121 -0
- data/html/files/lib/rubyrun/rubyrun_report___rb.html +101 -0
- data/html/files/lib/rubyrun/rubyrun_rss___rb.html +108 -0
- data/html/files/lib/rubyrun/rubyrun_tracer___rb.html +110 -0
- data/html/files/lib/rubyrun/rubyrun_utils___rb.html +108 -0
- data/html/files/lib/rubyrunm_rb.html +116 -0
- data/html/fr_class_index.html +42 -0
- data/html/fr_file_index.html +43 -0
- data/html/fr_method_index.html +96 -0
- data/html/index.html +24 -0
- data/html/rdoc-style.css +208 -0
- data/lib/rubyrun/rubyrun.rb +78 -0
- data/lib/rubyrun/rubyrun_buffer_mgr__.rb +49 -0
- data/lib/rubyrun/rubyrun_commander__.rb +196 -0
- data/lib/rubyrun/rubyrun_dad__.rb +35 -0
- data/lib/rubyrun/rubyrun_globals.rb +51 -0
- data/lib/rubyrun/rubyrun_html__.rb +136 -0
- data/lib/rubyrun/rubyrun_html_writer__.rb +64 -0
- data/lib/rubyrun/rubyrun_initializer__.rb +286 -0
- data/lib/rubyrun/rubyrun_instrumentor__.rb +226 -0
- data/lib/rubyrun/rubyrun_monitor__.rb +237 -0
- data/lib/rubyrun/rubyrun_report__.rb +109 -0
- data/lib/rubyrun/rubyrun_rss__.rb +97 -0
- data/lib/rubyrun/rubyrun_tracer__.rb +79 -0
- data/lib/rubyrun/rubyrun_utils__.rb +98 -0
- data/lib/rubyrun/rubyrunnative__.so +0 -0
- data/lib/rubyrunm.rb +10 -0
- metadata +149 -0
data/LICENSE
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
|
2
|
+
WARRANTY
|
3
|
+
=========
|
4
|
+
|
5
|
+
THIS SOFTWARE IS PROVIDED BY RUBYSOPHIC INC "AS IS" WITHOUT ANY EXPRESS OR
|
6
|
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
7
|
+
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE IS DISCLAIMED. THE SOFTWARE
|
8
|
+
PROVIDERS IN NO EVENT ARE LIABLE FOR ANY DIRECT, INDIRECT OR ANY OTHER TYPE OF
|
9
|
+
DAMAGES (INCLUDING BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
10
|
+
LOSS OF PROFITS, USE OR DATA; INTERRUPTION TO THE BUSINESS) HOWEVER CAUSED AND
|
11
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT OR STRICT LIABILITY ARISING
|
12
|
+
OUT OF USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF THE DAMAGE
|
13
|
+
|
data/README
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
#---------------------------------------------------------------#
|
2
|
+
# #
|
3
|
+
# (C) Copyright Rubysophic Inc. 2007-2008 #
|
4
|
+
# All rights reserved. #
|
5
|
+
# #
|
6
|
+
# Use, duplication or disclosure of the code is not permitted #
|
7
|
+
# unless licensed. #
|
8
|
+
# #
|
9
|
+
# Last Updated: 5/17/08 #
|
10
|
+
#---------------------------------------------------------------#
|
11
|
+
|
12
|
+
WARRANTY
|
13
|
+
=========
|
14
|
+
|
15
|
+
THIS SOFTWARE IS PROVIDED BY RUBYSOPHIC INC "AS IS" WITHOUT ANY EXPRESS OR
|
16
|
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
17
|
+
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE IS DISCLAIMED. THE SOFTWARE
|
18
|
+
PROVIDERS IN NO EVENT ARE LIABLE FOR ANY DIRECT, INDIRECT OR ANY OTHER TYPE OF
|
19
|
+
DAMAGES (INCLUDING BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
20
|
+
LOSS OF PROFITS, USE OR DATA; INTERRUPTION TO THE BUSINESS) HOWEVER CAUSED AND
|
21
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT OR STRICT LIABILITY ARISING
|
22
|
+
OUT OF USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF THE DAMAGE
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
Product Description
|
27
|
+
====================
|
28
|
+
|
29
|
+
RubyRun_CE v0.9 is a Ruby performance diagnostic tool.
|
30
|
+
RubyRun_CE features the following to help tune your Ruby and Rails applications
|
31
|
+
for better performance
|
32
|
+
|
33
|
+
Please refer to the following documentation for full description of features and usage/configuration of the product
|
34
|
+
|
35
|
+
docs/rubyrun-0.9.0.htm
|
36
|
+
|
37
|
+
Obtaining the software
|
38
|
+
======================
|
39
|
+
|
40
|
+
You can obtain more recent versions of the RubyRun_CE software by directly downloading from our website
|
41
|
+
|
42
|
+
www.rubysophic.com
|
43
|
+
|
44
|
+
RubyRun_CE is also available for download as gem from Rubyforge
|
45
|
+
|
46
|
+
Installation
|
47
|
+
============
|
48
|
+
|
49
|
+
gem install --remote rubyrun
|
50
|
+
|
51
|
+
or if you already downloaded the gem from RubySophic and placed it
|
52
|
+
in the directory <RubyRunHome>
|
53
|
+
|
54
|
+
gem install <RubyRunHome>/rubyrun-0.9.0.gem
|
55
|
+
or
|
56
|
+
gem install <RubyRunHome>/rubyrun-0.9.0-<platform>.gem
|
57
|
+
|
58
|
+
Configuration
|
59
|
+
==============
|
60
|
+
|
61
|
+
After the installation, you are required to configure RubyRun to monitor your
|
62
|
+
application.
|
63
|
+
|
64
|
+
- Please see the configuration section of the document
|
65
|
+
|
66
|
+
docs/rubyrun-0.9.0.htm
|
67
|
+
|
68
|
+
for configuration instructions.
|
69
|
+
|
70
|
+
Support
|
71
|
+
========
|
72
|
+
|
73
|
+
To report defects or for any questions, please email
|
74
|
+
support@rubysophic.com
|
75
|
+
|
76
|
+
|
77
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,241 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
Gem::manage_gems
|
3
|
+
|
4
|
+
require 'rake/gempackagetask'
|
5
|
+
require 'rake/packagetask'
|
6
|
+
require 'rake/rdoctask'
|
7
|
+
require 'rake/testtask'
|
8
|
+
require 'ftools'
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
PKG_NAME = "rubyrun"
|
13
|
+
PKG_VERSION = "0.9.0"
|
14
|
+
|
15
|
+
#TODO
|
16
|
+
# COLLAPSE THE SVN FILE STRUCTURE INTO FLAT HIERARchy and
|
17
|
+
# package the gem
|
18
|
+
|
19
|
+
PRG_FILES = FileList[
|
20
|
+
"Rakefile", "README", "LICENSE",
|
21
|
+
"lib/**/*",
|
22
|
+
"bin/**/*",
|
23
|
+
"ext/**/*",
|
24
|
+
"test/**/*",
|
25
|
+
"docs/**/*",
|
26
|
+
"etc/**/*",
|
27
|
+
"html/**/*"
|
28
|
+
|
29
|
+
]
|
30
|
+
|
31
|
+
# Don't need this as rake is smart, but just include it for safety
|
32
|
+
PRG_FILES.exclude(%r(\.log$))
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
nativeFiles = ["lib/rubyrun/rubyrunnative__.so", "lib/rubyrun/rubyrunnative__.bundle", "lib/rubyrun/rubyrunnative__linux.so"]
|
37
|
+
|
38
|
+
p "Current Dir: " + Dir.pwd
|
39
|
+
|
40
|
+
# File.safe_unlink(nativeFiles)
|
41
|
+
|
42
|
+
# Call from a function; Once initialized spec is caching the previous file
|
43
|
+
# values and trying to package them. As we don't want previous values to be
|
44
|
+
# cached, calling it from function
|
45
|
+
|
46
|
+
def generateGemSpec()
|
47
|
+
|
48
|
+
spec = Gem::Specification.new do |s|
|
49
|
+
s.name = PKG_NAME
|
50
|
+
s.version = PKG_VERSION
|
51
|
+
s.author = "RubySophic Inc"
|
52
|
+
s.email = "info@rubysophic.com"
|
53
|
+
s.homepage = "http://www.rubysophic.com"
|
54
|
+
s.files = PRG_FILES
|
55
|
+
s.require_path = '.'
|
56
|
+
s.autorequire = "rubyrunm"
|
57
|
+
s.has_rdoc = true
|
58
|
+
s.extra_rdoc_files = ["README"]
|
59
|
+
s.summary = "Software to diagnose and tune Ruby and Rails based applications"
|
60
|
+
s.rubyforge_project = "rubyrunce"
|
61
|
+
s.description = <<-EOF
|
62
|
+
rubyrun is diagnostic software provided by RubySophic Inc to diagnose
|
63
|
+
Ruby and Ruby/Rails based applications problems
|
64
|
+
|
65
|
+
For more information, refer to the document in docs/RubyRun.htm bundled
|
66
|
+
with the gem on usage, support, license etc
|
67
|
+
EOF
|
68
|
+
|
69
|
+
#s.files = FileList["{lib, test, ext}/**/*"].exclude("rdoc").to_a
|
70
|
+
|
71
|
+
s.require_paths << "lib"
|
72
|
+
s.require_paths << "lib/rubyrun"
|
73
|
+
|
74
|
+
end
|
75
|
+
|
76
|
+
return spec
|
77
|
+
|
78
|
+
end
|
79
|
+
|
80
|
+
|
81
|
+
task :buildwin do
|
82
|
+
|
83
|
+
Dir.foreach("lib/rubyrun") { | file |
|
84
|
+
if ((file =~ /rubyrunnative__.*/) != nil )
|
85
|
+
p "Filename: " + file
|
86
|
+
File.delete("lib/rubyrun/"+ file) if File.exist?("lib/rubyrun/"+ file)
|
87
|
+
end
|
88
|
+
}
|
89
|
+
|
90
|
+
sleep 5
|
91
|
+
|
92
|
+
File.copy("ext/rubyrunnative__.so", "lib/rubyrun/rubyrunnative__.so")
|
93
|
+
|
94
|
+
sleep 5
|
95
|
+
|
96
|
+
spec = generateGemSpec()
|
97
|
+
|
98
|
+
Gem::manage_gems
|
99
|
+
spec.platform = Gem::Platform::WIN32
|
100
|
+
# spec.files << "lib/rubyrun/rubyrunnative__.so"
|
101
|
+
|
102
|
+
builder = Gem::Builder.new(spec)
|
103
|
+
|
104
|
+
builder.build
|
105
|
+
|
106
|
+
Dir.foreach(Dir.pwd) { | file |
|
107
|
+
if ((file =~ /.*\.gem/) != nil )
|
108
|
+
File.move(file, "pkg")
|
109
|
+
end
|
110
|
+
}
|
111
|
+
|
112
|
+
end
|
113
|
+
|
114
|
+
task :buildlinux do
|
115
|
+
|
116
|
+
Dir.foreach("lib/rubyrun") { | file |
|
117
|
+
if ((file =~ /rubyrunnative__.*/) != nil )
|
118
|
+
p "Filename: " + file
|
119
|
+
File.delete("lib/rubyrun/"+ file) if File.exist?("lib/rubyrun/"+ file)
|
120
|
+
end
|
121
|
+
}
|
122
|
+
|
123
|
+
sleep 5
|
124
|
+
|
125
|
+
File.copy("ext/rubyrunnative__linux.so", "lib/rubyrun/rubyrunnative__.so")
|
126
|
+
|
127
|
+
sleep 5
|
128
|
+
|
129
|
+
spec = generateGemSpec()
|
130
|
+
|
131
|
+
Gem::manage_gems
|
132
|
+
spec.platform = Gem::Platform::LINUX_586
|
133
|
+
|
134
|
+
builder = Gem::Builder.new(spec)
|
135
|
+
|
136
|
+
builder.build
|
137
|
+
|
138
|
+
Dir.foreach(Dir.pwd) { | file |
|
139
|
+
if ((file =~ /.*\.gem/) != nil )
|
140
|
+
File.move(file, "pkg")
|
141
|
+
end
|
142
|
+
}
|
143
|
+
|
144
|
+
end
|
145
|
+
|
146
|
+
task :buildosx do
|
147
|
+
|
148
|
+
Dir.foreach("lib/rubyrun") { | file |
|
149
|
+
if ((file =~ /rubyrunnative__.*/) != nil )
|
150
|
+
p "Filename: " + file
|
151
|
+
File.delete("lib/rubyrun/"+ file) if File.exist?("lib/rubyrun/"+ file)
|
152
|
+
end
|
153
|
+
}
|
154
|
+
|
155
|
+
sleep 5
|
156
|
+
|
157
|
+
File.copy("ext/rubyrunnative__.bundle", "lib/rubyrun/rubyrunnative__.bundle")
|
158
|
+
|
159
|
+
sleep 5
|
160
|
+
|
161
|
+
spec = generateGemSpec()
|
162
|
+
|
163
|
+
Gem::manage_gems
|
164
|
+
spec.platform = Gem::Platform::DARWIN
|
165
|
+
|
166
|
+
builder = Gem::Builder.new(spec)
|
167
|
+
|
168
|
+
builder.build
|
169
|
+
|
170
|
+
Dir.foreach(Dir.pwd) { | file |
|
171
|
+
if ((file =~ /.*\.gem/) != nil )
|
172
|
+
File.move(file, "pkg")
|
173
|
+
end
|
174
|
+
}
|
175
|
+
|
176
|
+
|
177
|
+
end
|
178
|
+
|
179
|
+
task :buildrubygem do
|
180
|
+
|
181
|
+
Dir.foreach("lib/rubyrun") { | file |
|
182
|
+
if ((file =~ /rubyrunnative__.*/) != nil )
|
183
|
+
p "Filename: " + file
|
184
|
+
File.delete("lib/rubyrun/"+ file)
|
185
|
+
end
|
186
|
+
}
|
187
|
+
|
188
|
+
Gem::manage_gems
|
189
|
+
|
190
|
+
spec = generateGemSpec()
|
191
|
+
|
192
|
+
spec.extensions = ["ext/extconf.rb"]
|
193
|
+
#s.test_file = "test/main_test.rb"
|
194
|
+
spec.platform = Gem::Platform::RUBY
|
195
|
+
|
196
|
+
builder = Gem::Builder.new(spec)
|
197
|
+
|
198
|
+
builder.build
|
199
|
+
|
200
|
+
Dir.foreach(Dir.pwd) { | file |
|
201
|
+
if ((file =~ /.*\.gem/) != nil )
|
202
|
+
File.move(file, "pkg")
|
203
|
+
end
|
204
|
+
}
|
205
|
+
|
206
|
+
end
|
207
|
+
|
208
|
+
task :default => [:test]
|
209
|
+
|
210
|
+
Rake::TestTask.new(:test) do |t|
|
211
|
+
t.test_files = FileList['test/*.rb']
|
212
|
+
end
|
213
|
+
|
214
|
+
task :upload do
|
215
|
+
sh "scp -r html/* rubyrun@rubyforge.org:/var/www/gforge-projects/rubyrun"
|
216
|
+
end
|
217
|
+
|
218
|
+
|
219
|
+
desc "Create the RDOC html files"
|
220
|
+
|
221
|
+
rd = Rake::RDocTask.new("rdoc") { |rdoc|
|
222
|
+
rdoc.rdoc_dir = 'html'
|
223
|
+
rdoc.title = "RubyRun"
|
224
|
+
rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README'
|
225
|
+
rdoc.rdoc_files.include('README', 'LICENSE')
|
226
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
227
|
+
rdoc.rdoc_files.include('test/**/*.rb')
|
228
|
+
}
|
229
|
+
|
230
|
+
|
231
|
+
desc "Publish RubyRun Release to RubyForge"
|
232
|
+
|
233
|
+
task :release => [ :package ] do
|
234
|
+
require 'rubyforge'
|
235
|
+
|
236
|
+
packages = %w( gem tgz zip ).collect{ |ext| "pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}" }
|
237
|
+
|
238
|
+
rubyforge = RubyForge.new
|
239
|
+
rubyforge.login
|
240
|
+
rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
|
241
|
+
end
|
data/bin/confgure
ADDED