picombo 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/picombo.rb +10 -6
- data/lib/views/bench/footer.mustache +22 -0
- data/lib/views/bench/footer.rb +23 -0
- metadata +5 -3
data/lib/picombo.rb
CHANGED
@@ -5,10 +5,14 @@ require 'core/core'
|
|
5
5
|
require 'classes/config'
|
6
6
|
|
7
7
|
# This is where the magic happens!
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
module Picombo
|
9
|
+
module Loader
|
10
|
+
def self.run
|
11
|
+
return Rack::Builder.new do
|
12
|
+
use Rack::Session::Cookie
|
13
|
+
run Picombo::Core.new
|
14
|
+
puts '-- Starting Picombo Version '+Picombo::Core::VERSION
|
15
|
+
end
|
16
|
+
end
|
13
17
|
end
|
14
|
-
end
|
18
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<table style="width: 100%">
|
2
|
+
<tr>
|
3
|
+
<th align="left">System Benchmarks</th>
|
4
|
+
<th align="right">Time</th>
|
5
|
+
</tr>
|
6
|
+
<tr>
|
7
|
+
<td>Picombo Setup</td>
|
8
|
+
<td align="right">{{loading}}</td>
|
9
|
+
</tr>
|
10
|
+
<tr>
|
11
|
+
<td>Environment Setup</td>
|
12
|
+
<td align="right">{{setup}}</td>
|
13
|
+
</tr>
|
14
|
+
<tr>
|
15
|
+
<td>Controller Execution</td>
|
16
|
+
<td align="right">{{controller_execution}}</td>
|
17
|
+
</tr>
|
18
|
+
<tr>
|
19
|
+
<td>Total Execution</td>
|
20
|
+
<td align="right">{{application}}</td>
|
21
|
+
</tr>
|
22
|
+
</table>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Picombo
|
2
|
+
module Stache
|
3
|
+
class Bench_Footer < Mustache
|
4
|
+
self.template = File.open(Picombo::Core.find_file('views', 'bench/footer', true, 'mustache').shift).read
|
5
|
+
|
6
|
+
def loading
|
7
|
+
Picombo::Bench.instance.get('loading')
|
8
|
+
end
|
9
|
+
|
10
|
+
def setup
|
11
|
+
Picombo::Bench.instance.get('setup')
|
12
|
+
end
|
13
|
+
|
14
|
+
def controller_execution
|
15
|
+
Picombo::Bench.instance.get('controller_execution')
|
16
|
+
end
|
17
|
+
|
18
|
+
def application
|
19
|
+
Picombo::Bench.instance.get('application')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 2
|
9
|
+
version: 0.4.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jeremy Bush
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-07-12 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -80,6 +80,8 @@ files:
|
|
80
80
|
- ./lib/picombo.rb
|
81
81
|
- ./lib/views/error/404.mustache
|
82
82
|
- ./lib/views/error/404.rb
|
83
|
+
- ./lib/views/bench/footer.mustache
|
84
|
+
- ./lib/views/bench/footer.rb
|
83
85
|
has_rdoc: true
|
84
86
|
homepage: http://www.picombo.net/
|
85
87
|
licenses: []
|