[ca2115]: app / models / report / performance_report.rb Maximize Restore History

Download this file

performance_report.rb    33 lines (28 with data), 796 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# This file is part of the Jikes RVM project (http://jikesrvm.org).
#
# This file is licensed to You under the Eclipse Public License (EPL);
# You may not use this file except in compliance with the License. You
# may obtain a copy of the License at
#
# http://www.opensource.org/licenses/cpl1.0.php
#
# See the COPYRIGHT.txt file distributed with this work for information
# regarding copyright ownership.
#
class Report::PerformanceReport < Report::BaseTestRunByRevision
# Input parameters
attr_reader :test_run, :window_size
# Output parameters
attr_reader :test_runs, :statistics
def initialize(test_run)
super
end
private
def perform
super
if not (@test_run['variant'] == 'perf') then
@statistics = get_perf_stats(nil)
end
end
end