Lines Matching refs:percentile
59 h_title = { True: 'Percentile', False: 'Time (s)' }
76 def _parse_log_file(cls, file_name, pass_index, pass_count, percentile):
88 @param percentile: flag to use percentile as key instead of timestamp
102 # Sort & calculate percentile
103 if percentile:
120 def _gen_data_col(cls, pass_list, percentile):
128 @param percentile: flag to use percentile as key instead of timestamp
132 if percentile:
133 col_name_list = ['percentile'] + [p[0] for p in pass_list]
140 def _gen_data_row(cls, test_type, pass_list, percentile):
147 @param percentile: flag to use percentile as key instead of timestamp
155 pass_count, percentile))
159 def _write_data(cls, f, test_type, pass_list, percentile):
167 @param percentile: flag to use percentile as key instead of timestamp
169 col = cls._gen_data_col(pass_list, percentile)
170 row = cls._gen_data_row(test_type, pass_list, percentile)
178 def _write_option(cls, f, test_name, test_type, percentile):
185 @param percentile: flag to use percentile as key instead of timestamp
188 if percentile:
189 option['title'] = ('Percentile graph of %s for %s workload' %
195 option['hAxis'] = {'title': cls.h_title[percentile]}
203 def _write_graph(cls, test_name, test_type, pass_list, percentile=False):
210 @param percentile: flag to use percentile as key instead of timestamp
216 if percentile:
223 cls._write_data(f, test_type, pass_list, percentile)
224 cls._write_option(f, test_name, test_type, percentile)