bigbench 0.0.3 → 0.0.4
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/.DS_Store +0 -0
- data/README.textile +254 -4
- data/Rakefile +43 -9
- data/doc/Array.html +288 -0
- data/doc/BigBench.html +32 -6
- data/doc/BigBench/Benchmark.html +24 -0
- data/doc/BigBench/Benchmark/Benchmark.html +24 -0
- data/doc/BigBench/Benchmark/Looper.html +24 -0
- data/doc/BigBench/Bot.html +24 -0
- data/doc/BigBench/Configuration.html +24 -0
- data/doc/BigBench/Configuration/Config.html +24 -0
- data/doc/BigBench/Configuration/InvalidOptions.html +24 -0
- data/doc/BigBench/Executor.html +33 -3
- data/doc/BigBench/Executor/InvalidCommand.html +25 -1
- data/doc/BigBench/Fragment.html +24 -0
- data/doc/BigBench/Fragment/Fragment.html +24 -0
- data/doc/BigBench/Output.html +24 -0
- data/doc/BigBench/PostProcessor.html +33 -6
- data/doc/BigBench/PostProcessor/Environment.html +489 -2
- data/doc/BigBench/PostProcessor/Environment/Appearings.html +327 -0
- data/doc/BigBench/PostProcessor/Environment/AttributeCluster.html +275 -0
- data/doc/BigBench/PostProcessor/Environment/BenchmarkNotFound.html +293 -0
- data/doc/BigBench/PostProcessor/Environment/Cluster.html +387 -0
- data/doc/BigBench/PostProcessor/Environment/NormalDistribution.html +383 -0
- data/doc/BigBench/PostProcessor/Environment/PolynomialRegression.html +438 -0
- data/doc/BigBench/PostProcessor/Environment/Statistics.html +568 -0
- data/doc/BigBench/PostProcessor/Graphs.html +270 -0
- data/doc/BigBench/PostProcessor/Graphs/LineGraph.html +403 -0
- data/doc/BigBench/PostProcessor/Graphs/PieGraph.html +396 -0
- data/doc/BigBench/PostProcessor/InvalidProcessor.html +25 -1
- data/doc/BigBench/PostProcessor/Processor.html +59 -7
- data/doc/BigBench/PostProcessor/Statistics.html +26 -2
- data/doc/BigBench/PostProcessor/Test.html +26 -2
- data/doc/BigBench/Runner.html +24 -0
- data/doc/BigBench/Runner/NoBenchmarksDefined.html +24 -0
- data/doc/BigBench/Store.html +24 -0
- data/doc/BigBench/Tracker.html +24 -0
- data/doc/BigBench/Tracker/Tracker.html +24 -0
- data/doc/EventMachineLoop.html +24 -0
- data/doc/Float.html +24 -0
- data/doc/Gemfile.html +24 -0
- data/doc/Helpers.html +78 -0
- data/doc/Object.html +29 -0
- data/doc/README_rdoc.html +803 -0
- data/doc/Rakefile.html +66 -10
- data/doc/created.rid +46 -40
- data/doc/index.html +667 -1
- data/doc/js/search_index.js +1 -1
- data/doc/lib/bigbench/help/executor_txt.html +32 -2
- data/doc/rdoc.css +4 -0
- data/doc/table_of_contents.html +179 -23
- data/doc/test_rdoc.html +159 -0
- data/lib/bigbench.rb +2 -0
- data/lib/bigbench/executor.rb +17 -1
- data/lib/bigbench/help/executor.txt +5 -0
- data/lib/bigbench/post_processor.rb +16 -32
- data/lib/bigbench/post_processor/environment.rb +525 -0
- data/lib/bigbench/post_processor/graphs.rb +209 -0
- data/lib/bigbench/post_processor/statistics.rb +29 -49
- data/lib/bigbench/version.rb +1 -1
- data/spec/executor_spec.rb +35 -0
- data/spec/helpers.rb +15 -1
- data/spec/post_processor_spec.rb +19 -4
- data/spec/post_processors/environment_spec.rb +412 -0
- data/spec/post_processors/graphs_spec.rb +23 -0
- data/spec/post_processors/statistics_spec.rb +3 -2
- data/spec/tests/local.rb +1 -1
- data/spec/tests/sample_results_big.ljson +51925 -0
- data/spec/tests/sample_results_small.ljson +3875 -0
- data/spec/tests/with_post_processor.ljson +43 -0
- data/spec/tests/with_post_processor.rb +12 -0
- data/spec/tmp/.DS_Store +0 -0
- data/spec/tracker_spec.rb +8 -8
- metadata +61 -101
@@ -0,0 +1,270 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module BigBench::PostProcessor::Graphs - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../../index.html">Home</a>
|
28
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/bigbench/post_processor/graphs.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<!-- Method Quickref -->
|
62
|
+
<nav id="method-list-section" class="section">
|
63
|
+
<h3 class="section-header">Methods</h3>
|
64
|
+
|
65
|
+
<ul class="link-list">
|
66
|
+
|
67
|
+
<li><a href="#method-c-run-21">::run!</a>
|
68
|
+
|
69
|
+
</ul>
|
70
|
+
</nav>
|
71
|
+
|
72
|
+
</div>
|
73
|
+
|
74
|
+
<div id="project-metadata">
|
75
|
+
<nav id="fileindex-section" class="section project-section">
|
76
|
+
<h3 class="section-header">Pages</h3>
|
77
|
+
|
78
|
+
<ul>
|
79
|
+
|
80
|
+
<li class="file"><a href="../../Gemfile.html">Gemfile</a>
|
81
|
+
|
82
|
+
<li class="file"><a href="../../README_rdoc.html">README</a>
|
83
|
+
|
84
|
+
<li class="file"><a href="../../Rakefile.html">Rakefile</a>
|
85
|
+
|
86
|
+
<li class="file"><a href="../../lib/bigbench/help/executor_txt.html">executor</a>
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</nav>
|
90
|
+
|
91
|
+
<nav id="classindex-section" class="section project-section">
|
92
|
+
<h3 class="section-header">Class and Module Index</h3>
|
93
|
+
|
94
|
+
<ul class="link-list">
|
95
|
+
|
96
|
+
<li><a href="../../BigBench.html">BigBench</a>
|
97
|
+
|
98
|
+
<li><a href="../../BigBench/Benchmark.html">BigBench::Benchmark</a>
|
99
|
+
|
100
|
+
<li><a href="../../BigBench/Benchmark/Benchmark.html">BigBench::Benchmark::Benchmark</a>
|
101
|
+
|
102
|
+
<li><a href="../../BigBench/Benchmark/Looper.html">BigBench::Benchmark::Looper</a>
|
103
|
+
|
104
|
+
<li><a href="../../BigBench/Bot.html">BigBench::Bot</a>
|
105
|
+
|
106
|
+
<li><a href="../../BigBench/Configuration.html">BigBench::Configuration</a>
|
107
|
+
|
108
|
+
<li><a href="../../BigBench/Configuration/Config.html">BigBench::Configuration::Config</a>
|
109
|
+
|
110
|
+
<li><a href="../../BigBench/Configuration/InvalidOptions.html">BigBench::Configuration::InvalidOptions</a>
|
111
|
+
|
112
|
+
<li><a href="../../BigBench/Executor.html">BigBench::Executor</a>
|
113
|
+
|
114
|
+
<li><a href="../../BigBench/Executor/InvalidCommand.html">BigBench::Executor::InvalidCommand</a>
|
115
|
+
|
116
|
+
<li><a href="../../BigBench/Fragment.html">BigBench::Fragment</a>
|
117
|
+
|
118
|
+
<li><a href="../../BigBench/Fragment/Fragment.html">BigBench::Fragment::Fragment</a>
|
119
|
+
|
120
|
+
<li><a href="../../BigBench/Output.html">BigBench::Output</a>
|
121
|
+
|
122
|
+
<li><a href="../../BigBench/PostProcessor.html">BigBench::PostProcessor</a>
|
123
|
+
|
124
|
+
<li><a href="../../BigBench/PostProcessor/Environment.html">BigBench::PostProcessor::Environment</a>
|
125
|
+
|
126
|
+
<li><a href="../../BigBench/PostProcessor/Environment/Appearings.html">BigBench::PostProcessor::Environment::Appearings</a>
|
127
|
+
|
128
|
+
<li><a href="../../BigBench/PostProcessor/Environment/AttributeCluster.html">BigBench::PostProcessor::Environment::AttributeCluster</a>
|
129
|
+
|
130
|
+
<li><a href="../../BigBench/PostProcessor/Environment/BenchmarkNotFound.html">BigBench::PostProcessor::Environment::BenchmarkNotFound</a>
|
131
|
+
|
132
|
+
<li><a href="../../BigBench/PostProcessor/Environment/Cluster.html">BigBench::PostProcessor::Environment::Cluster</a>
|
133
|
+
|
134
|
+
<li><a href="../../BigBench/PostProcessor/Environment/NormalDistribution.html">BigBench::PostProcessor::Environment::NormalDistribution</a>
|
135
|
+
|
136
|
+
<li><a href="../../BigBench/PostProcessor/Environment/PolynomialRegression.html">BigBench::PostProcessor::Environment::PolynomialRegression</a>
|
137
|
+
|
138
|
+
<li><a href="../../BigBench/PostProcessor/Environment/Statistics.html">BigBench::PostProcessor::Environment::Statistics</a>
|
139
|
+
|
140
|
+
<li><a href="../../BigBench/PostProcessor/Graphs.html">BigBench::PostProcessor::Graphs</a>
|
141
|
+
|
142
|
+
<li><a href="../../BigBench/PostProcessor/Graphs/LineGraph.html">BigBench::PostProcessor::Graphs::LineGraph</a>
|
143
|
+
|
144
|
+
<li><a href="../../BigBench/PostProcessor/Graphs/PieGraph.html">BigBench::PostProcessor::Graphs::PieGraph</a>
|
145
|
+
|
146
|
+
<li><a href="../../BigBench/PostProcessor/InvalidProcessor.html">BigBench::PostProcessor::InvalidProcessor</a>
|
147
|
+
|
148
|
+
<li><a href="../../BigBench/PostProcessor/Processor.html">BigBench::PostProcessor::Processor</a>
|
149
|
+
|
150
|
+
<li><a href="../../BigBench/PostProcessor/Statistics.html">BigBench::PostProcessor::Statistics</a>
|
151
|
+
|
152
|
+
<li><a href="../../BigBench/PostProcessor/Test.html">BigBench::PostProcessor::Test</a>
|
153
|
+
|
154
|
+
<li><a href="../../BigBench/Runner.html">BigBench::Runner</a>
|
155
|
+
|
156
|
+
<li><a href="../../BigBench/Runner/NoBenchmarksDefined.html">BigBench::Runner::NoBenchmarksDefined</a>
|
157
|
+
|
158
|
+
<li><a href="../../BigBench/Store.html">BigBench::Store</a>
|
159
|
+
|
160
|
+
<li><a href="../../BigBench/Tracker.html">BigBench::Tracker</a>
|
161
|
+
|
162
|
+
<li><a href="../../BigBench/Tracker/Tracker.html">BigBench::Tracker::Tracker</a>
|
163
|
+
|
164
|
+
<li><a href="../../Array.html">Array</a>
|
165
|
+
|
166
|
+
<li><a href="../../EventMachineLoop.html">EventMachineLoop</a>
|
167
|
+
|
168
|
+
<li><a href="../../Float.html">Float</a>
|
169
|
+
|
170
|
+
<li><a href="../../Helpers.html">Helpers</a>
|
171
|
+
|
172
|
+
<li><a href="../../Object.html">Object</a>
|
173
|
+
|
174
|
+
</ul>
|
175
|
+
</nav>
|
176
|
+
|
177
|
+
</div>
|
178
|
+
</nav>
|
179
|
+
|
180
|
+
<div id="documentation">
|
181
|
+
<h1 class="module">module BigBench::PostProcessor::Graphs</h1>
|
182
|
+
|
183
|
+
<div id="description" class="description">
|
184
|
+
|
185
|
+
</div><!-- description -->
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<!-- Constants -->
|
197
|
+
<section id="constants-list" class="section">
|
198
|
+
<h3 class="section-header">Constants</h3>
|
199
|
+
<dl>
|
200
|
+
|
201
|
+
<dt id="DEFAULT">DEFAULT
|
202
|
+
|
203
|
+
<dd class="description">
|
204
|
+
|
205
|
+
|
206
|
+
</dl>
|
207
|
+
</section>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
<!-- Methods -->
|
213
|
+
|
214
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
215
|
+
<h3 class="section-header">Public Class Methods</h3>
|
216
|
+
|
217
|
+
|
218
|
+
<div id="method-c-run-21" class="method-detail ">
|
219
|
+
|
220
|
+
<div class="method-heading">
|
221
|
+
<span class="method-name">run!</span><span
|
222
|
+
class="method-args">(options)</span>
|
223
|
+
<span class="method-click-advice">click to toggle source</span>
|
224
|
+
</div>
|
225
|
+
|
226
|
+
|
227
|
+
<div class="method-description">
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
<div class="method-source-code" id="run-21-source">
|
234
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/graphs.rb, line 99</span>
|
235
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">run!</span>(<span class="ruby-identifier">options</span>)
|
236
|
+
|
237
|
+
<span class="ruby-comment"># Summary</span>
|
238
|
+
<span class="ruby-identifier">line_charts</span>.<span class="ruby-identifier">call</span> <span class="ruby-string">"Summary"</span>, <span class="ruby-identifier">options</span>
|
239
|
+
<span class="ruby-identifier">pie_charts</span>.<span class="ruby-identifier">call</span> <span class="ruby-string">"Summary"</span>, <span class="ruby-identifier">options</span>
|
240
|
+
|
241
|
+
<span class="ruby-comment"># Benchmarks</span>
|
242
|
+
<span class="ruby-identifier">each_benchmark</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">benchmark</span><span class="ruby-operator">|</span>
|
243
|
+
<span class="ruby-identifier">line_charts</span>.<span class="ruby-identifier">call</span> <span class="ruby-identifier">benchmark</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">options</span>
|
244
|
+
<span class="ruby-identifier">pie_charts</span>.<span class="ruby-identifier">call</span> <span class="ruby-identifier">benchmark</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">options</span>
|
245
|
+
<span class="ruby-keyword">end</span>
|
246
|
+
|
247
|
+
<span class="ruby-keyword">end</span></pre>
|
248
|
+
</div><!-- run-21-source -->
|
249
|
+
|
250
|
+
</div>
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
</div><!-- run-21-method -->
|
256
|
+
|
257
|
+
|
258
|
+
</section><!-- public-class-method-details -->
|
259
|
+
|
260
|
+
</section><!-- 5Buntitled-5D -->
|
261
|
+
|
262
|
+
</div><!-- documentation -->
|
263
|
+
|
264
|
+
|
265
|
+
<footer id="validator-badges">
|
266
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
267
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
268
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
269
|
+
</footer>
|
270
|
+
|
@@ -0,0 +1,403 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class BigBench::PostProcessor::Graphs::LineGraph - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../../../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../../../index.html">Home</a>
|
28
|
+
<a href="../../../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../../../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/bigbench/post_processor/graphs.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="../../../Object.html">Object</a>
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-add">#add</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-open">#open</a>
|
78
|
+
|
79
|
+
<li><a href="#method-i-write">#write</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</nav>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div id="project-metadata">
|
87
|
+
<nav id="fileindex-section" class="section project-section">
|
88
|
+
<h3 class="section-header">Pages</h3>
|
89
|
+
|
90
|
+
<ul>
|
91
|
+
|
92
|
+
<li class="file"><a href="../../../Gemfile.html">Gemfile</a>
|
93
|
+
|
94
|
+
<li class="file"><a href="../../../README_rdoc.html">README</a>
|
95
|
+
|
96
|
+
<li class="file"><a href="../../../Rakefile.html">Rakefile</a>
|
97
|
+
|
98
|
+
<li class="file"><a href="../../../lib/bigbench/help/executor_txt.html">executor</a>
|
99
|
+
|
100
|
+
</ul>
|
101
|
+
</nav>
|
102
|
+
|
103
|
+
<nav id="classindex-section" class="section project-section">
|
104
|
+
<h3 class="section-header">Class and Module Index</h3>
|
105
|
+
|
106
|
+
<ul class="link-list">
|
107
|
+
|
108
|
+
<li><a href="../../../BigBench.html">BigBench</a>
|
109
|
+
|
110
|
+
<li><a href="../../../BigBench/Benchmark.html">BigBench::Benchmark</a>
|
111
|
+
|
112
|
+
<li><a href="../../../BigBench/Benchmark/Benchmark.html">BigBench::Benchmark::Benchmark</a>
|
113
|
+
|
114
|
+
<li><a href="../../../BigBench/Benchmark/Looper.html">BigBench::Benchmark::Looper</a>
|
115
|
+
|
116
|
+
<li><a href="../../../BigBench/Bot.html">BigBench::Bot</a>
|
117
|
+
|
118
|
+
<li><a href="../../../BigBench/Configuration.html">BigBench::Configuration</a>
|
119
|
+
|
120
|
+
<li><a href="../../../BigBench/Configuration/Config.html">BigBench::Configuration::Config</a>
|
121
|
+
|
122
|
+
<li><a href="../../../BigBench/Configuration/InvalidOptions.html">BigBench::Configuration::InvalidOptions</a>
|
123
|
+
|
124
|
+
<li><a href="../../../BigBench/Executor.html">BigBench::Executor</a>
|
125
|
+
|
126
|
+
<li><a href="../../../BigBench/Executor/InvalidCommand.html">BigBench::Executor::InvalidCommand</a>
|
127
|
+
|
128
|
+
<li><a href="../../../BigBench/Fragment.html">BigBench::Fragment</a>
|
129
|
+
|
130
|
+
<li><a href="../../../BigBench/Fragment/Fragment.html">BigBench::Fragment::Fragment</a>
|
131
|
+
|
132
|
+
<li><a href="../../../BigBench/Output.html">BigBench::Output</a>
|
133
|
+
|
134
|
+
<li><a href="../../../BigBench/PostProcessor.html">BigBench::PostProcessor</a>
|
135
|
+
|
136
|
+
<li><a href="../../../BigBench/PostProcessor/Environment.html">BigBench::PostProcessor::Environment</a>
|
137
|
+
|
138
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Appearings.html">BigBench::PostProcessor::Environment::Appearings</a>
|
139
|
+
|
140
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/AttributeCluster.html">BigBench::PostProcessor::Environment::AttributeCluster</a>
|
141
|
+
|
142
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/BenchmarkNotFound.html">BigBench::PostProcessor::Environment::BenchmarkNotFound</a>
|
143
|
+
|
144
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Cluster.html">BigBench::PostProcessor::Environment::Cluster</a>
|
145
|
+
|
146
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/NormalDistribution.html">BigBench::PostProcessor::Environment::NormalDistribution</a>
|
147
|
+
|
148
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/PolynomialRegression.html">BigBench::PostProcessor::Environment::PolynomialRegression</a>
|
149
|
+
|
150
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Statistics.html">BigBench::PostProcessor::Environment::Statistics</a>
|
151
|
+
|
152
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs.html">BigBench::PostProcessor::Graphs</a>
|
153
|
+
|
154
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs/LineGraph.html">BigBench::PostProcessor::Graphs::LineGraph</a>
|
155
|
+
|
156
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs/PieGraph.html">BigBench::PostProcessor::Graphs::PieGraph</a>
|
157
|
+
|
158
|
+
<li><a href="../../../BigBench/PostProcessor/InvalidProcessor.html">BigBench::PostProcessor::InvalidProcessor</a>
|
159
|
+
|
160
|
+
<li><a href="../../../BigBench/PostProcessor/Processor.html">BigBench::PostProcessor::Processor</a>
|
161
|
+
|
162
|
+
<li><a href="../../../BigBench/PostProcessor/Statistics.html">BigBench::PostProcessor::Statistics</a>
|
163
|
+
|
164
|
+
<li><a href="../../../BigBench/PostProcessor/Test.html">BigBench::PostProcessor::Test</a>
|
165
|
+
|
166
|
+
<li><a href="../../../BigBench/Runner.html">BigBench::Runner</a>
|
167
|
+
|
168
|
+
<li><a href="../../../BigBench/Runner/NoBenchmarksDefined.html">BigBench::Runner::NoBenchmarksDefined</a>
|
169
|
+
|
170
|
+
<li><a href="../../../BigBench/Store.html">BigBench::Store</a>
|
171
|
+
|
172
|
+
<li><a href="../../../BigBench/Tracker.html">BigBench::Tracker</a>
|
173
|
+
|
174
|
+
<li><a href="../../../BigBench/Tracker/Tracker.html">BigBench::Tracker::Tracker</a>
|
175
|
+
|
176
|
+
<li><a href="../../../Array.html">Array</a>
|
177
|
+
|
178
|
+
<li><a href="../../../EventMachineLoop.html">EventMachineLoop</a>
|
179
|
+
|
180
|
+
<li><a href="../../../Float.html">Float</a>
|
181
|
+
|
182
|
+
<li><a href="../../../Helpers.html">Helpers</a>
|
183
|
+
|
184
|
+
<li><a href="../../../Object.html">Object</a>
|
185
|
+
|
186
|
+
</ul>
|
187
|
+
</nav>
|
188
|
+
|
189
|
+
</div>
|
190
|
+
</nav>
|
191
|
+
|
192
|
+
<div id="documentation">
|
193
|
+
<h1 class="class">class BigBench::PostProcessor::Graphs::LineGraph</h1>
|
194
|
+
|
195
|
+
<div id="description" class="description">
|
196
|
+
|
197
|
+
<p>Encapsules the gruff line graph</p>
|
198
|
+
|
199
|
+
</div><!-- description -->
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
<!-- Attributes -->
|
213
|
+
<section id="attribute-method-details" class="method-section section">
|
214
|
+
<h3 class="section-header">Attributes</h3>
|
215
|
+
|
216
|
+
|
217
|
+
<div id="attribute-i-graph" class="method-detail">
|
218
|
+
<div class="method-heading attribute-method-heading">
|
219
|
+
<span class="method-name">graph</span><span
|
220
|
+
class="attribute-access-type">[R]</span>
|
221
|
+
</div>
|
222
|
+
|
223
|
+
<div class="method-description">
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
</div>
|
228
|
+
</div>
|
229
|
+
|
230
|
+
<div id="attribute-i-labels" class="method-detail">
|
231
|
+
<div class="method-heading attribute-method-heading">
|
232
|
+
<span class="method-name">labels</span><span
|
233
|
+
class="attribute-access-type">[RW]</span>
|
234
|
+
</div>
|
235
|
+
|
236
|
+
<div class="method-description">
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
</div>
|
241
|
+
</div>
|
242
|
+
|
243
|
+
</section><!-- attribute-method-details -->
|
244
|
+
|
245
|
+
|
246
|
+
<!-- Methods -->
|
247
|
+
|
248
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
249
|
+
<h3 class="section-header">Public Class Methods</h3>
|
250
|
+
|
251
|
+
|
252
|
+
<div id="method-c-new" class="method-detail ">
|
253
|
+
|
254
|
+
<div class="method-heading">
|
255
|
+
<span class="method-name">new</span><span
|
256
|
+
class="method-args">(title, options = {})</span>
|
257
|
+
<span class="method-click-advice">click to toggle source</span>
|
258
|
+
</div>
|
259
|
+
|
260
|
+
|
261
|
+
<div class="method-description">
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
<div class="method-source-code" id="new-source">
|
268
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/graphs.rb, line 29</span>
|
269
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">title</span>, <span class="ruby-identifier">options</span> = {}
|
270
|
+
<span class="ruby-ivar">@graph</span> = <span class="ruby-constant">Gruff</span><span class="ruby-operator">::</span><span class="ruby-constant">Line</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:size</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">DEFAULT</span>[<span class="ruby-value">:size</span>])
|
271
|
+
<span class="ruby-ivar">@graph</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">title</span>
|
272
|
+
<span class="ruby-ivar">@graph</span>.<span class="ruby-identifier">theme</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:theme</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">DEFAULT</span>[<span class="ruby-value">:theme</span>]
|
273
|
+
<span class="ruby-ivar">@graph</span>.<span class="ruby-identifier">line_width</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:line_width</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">DEFAULT</span>[<span class="ruby-value">:line_width</span>]
|
274
|
+
<span class="ruby-ivar">@graph</span>.<span class="ruby-identifier">dot_radius</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:dot_radius</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">DEFAULT</span>[<span class="ruby-value">:dot_radius</span>]
|
275
|
+
<span class="ruby-ivar">@graph</span>.<span class="ruby-identifier">y_axis_label</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:y_axis_label</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">DEFAULT</span>[<span class="ruby-value">:y_axis_label</span>]
|
276
|
+
<span class="ruby-ivar">@graph</span>.<span class="ruby-identifier">x_axis_label</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:x_axis_label</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">DEFAULT</span>[<span class="ruby-value">:x_axis_label</span>]
|
277
|
+
<span class="ruby-ivar">@x_axis_label_amount</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:x_axis_label_amount</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">DEFAULT</span>[<span class="ruby-value">:x_axis_label_amount</span>]
|
278
|
+
<span class="ruby-ivar">@folder</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:folder</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">DEFAULT</span>[<span class="ruby-value">:folder</span>]
|
279
|
+
|
280
|
+
<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">mkdir</span> <span class="ruby-ivar">@folder</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-ivar">@folder</span>)
|
281
|
+
<span class="ruby-keyword">end</span></pre>
|
282
|
+
</div><!-- new-source -->
|
283
|
+
|
284
|
+
</div>
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
</div><!-- new-method -->
|
290
|
+
|
291
|
+
|
292
|
+
</section><!-- public-class-method-details -->
|
293
|
+
|
294
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
295
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
296
|
+
|
297
|
+
|
298
|
+
<div id="method-i-add" class="method-detail ">
|
299
|
+
|
300
|
+
<div class="method-heading">
|
301
|
+
<span class="method-name">add</span><span
|
302
|
+
class="method-args">(title, x, y)</span>
|
303
|
+
<span class="method-click-advice">click to toggle source</span>
|
304
|
+
</div>
|
305
|
+
|
306
|
+
|
307
|
+
<div class="method-description">
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
<div class="method-source-code" id="add-source">
|
314
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/graphs.rb, line 43</span>
|
315
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add</span> <span class="ruby-identifier">title</span>, <span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>
|
316
|
+
<span class="ruby-ivar">@x</span> = <span class="ruby-identifier">x</span>
|
317
|
+
<span class="ruby-ivar">@graph</span>.<span class="ruby-identifier">data</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">y</span>)
|
318
|
+
<span class="ruby-keyword">end</span></pre>
|
319
|
+
</div><!-- add-source -->
|
320
|
+
|
321
|
+
</div>
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
</div><!-- add-method -->
|
327
|
+
|
328
|
+
|
329
|
+
<div id="method-i-open" class="method-detail ">
|
330
|
+
|
331
|
+
<div class="method-heading">
|
332
|
+
<span class="method-name">open</span><span
|
333
|
+
class="method-args">()</span>
|
334
|
+
<span class="method-click-advice">click to toggle source</span>
|
335
|
+
</div>
|
336
|
+
|
337
|
+
|
338
|
+
<div class="method-description">
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
<div class="method-source-code" id="open-source">
|
345
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/graphs.rb, line 54</span>
|
346
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">open</span>
|
347
|
+
<span class="ruby-node">%xopen #{File.join(@folder, @file)}`</span>
|
348
|
+
<span class="ruby-keyword">end</span></pre>
|
349
|
+
</div><!-- open-source -->
|
350
|
+
|
351
|
+
</div>
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
</div><!-- open-method -->
|
357
|
+
|
358
|
+
|
359
|
+
<div id="method-i-write" class="method-detail ">
|
360
|
+
|
361
|
+
<div class="method-heading">
|
362
|
+
<span class="method-name">write</span><span
|
363
|
+
class="method-args">(file)</span>
|
364
|
+
<span class="method-click-advice">click to toggle source</span>
|
365
|
+
</div>
|
366
|
+
|
367
|
+
|
368
|
+
<div class="method-description">
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
<div class="method-source-code" id="write-source">
|
375
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/graphs.rb, line 48</span>
|
376
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">write</span> <span class="ruby-identifier">file</span>
|
377
|
+
<span class="ruby-ivar">@graph</span>.<span class="ruby-identifier">labels</span> = <span class="ruby-ivar">@labels</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">calculate_x_labels</span>
|
378
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"Writing Graph to #{File.join(@folder, @file = file)}"</span>
|
379
|
+
<span class="ruby-ivar">@graph</span>.<span class="ruby-identifier">write</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@folder</span>, <span class="ruby-ivar">@file</span> = <span class="ruby-identifier">file</span>)
|
380
|
+
<span class="ruby-keyword">end</span></pre>
|
381
|
+
</div><!-- write-source -->
|
382
|
+
|
383
|
+
</div>
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
</div><!-- write-method -->
|
389
|
+
|
390
|
+
|
391
|
+
</section><!-- public-instance-method-details -->
|
392
|
+
|
393
|
+
</section><!-- 5Buntitled-5D -->
|
394
|
+
|
395
|
+
</div><!-- documentation -->
|
396
|
+
|
397
|
+
|
398
|
+
<footer id="validator-badges">
|
399
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
400
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
401
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
402
|
+
</footer>
|
403
|
+
|