diff --git a/thirdparty/itt_collector/runtool/exporters/Stat.py b/thirdparty/itt_collector/runtool/exporters/Stat.py index 4d3a6cc3ac8..67007e9169d 100644 --- a/thirdparty/itt_collector/runtool/exporters/Stat.py +++ b/thirdparty/itt_collector/runtool/exporters/Stat.py @@ -18,21 +18,16 @@ import csv import shutil from sea_runtool import GraphCombiner -# Supported values are "csv" and "tsv" -FILE_EXTENSION = ".csv" - class Stat(GraphCombiner): def __init__(self, args, tree): GraphCombiner.__init__(self, args, tree) def get_targets(self): - return [self.args.output + FILE_EXTENSION] + return [self.args.output + ".csv"] def finish(self): GraphCombiner.finish(self) delim = ',' - if FILE_EXTENSION == ".tsv": - delim = '\t' with open(self.get_targets()[-1], 'w') as f: writer = csv.writer(f, delimiter=delim) writer.writerow(["domain", "name", "min", "max", "avg", "total", "count"]) @@ -41,15 +36,6 @@ class Stat(GraphCombiner): time = task_data['time'] writer.writerow([domain, task_name, min(time), max(time), sum(time) / len(time), sum(time), len(time)]) - @staticmethod - def join_traces(traces, output, args): # FIXME: implement real joiner - sorting = [] - for trace in traces: - sorting.append((os.path.getsize(trace), trace)) - sorting.sort(key=lambda size_trace: size_trace[0], reverse=True) - shutil.copyfile(sorting[0][1], output + ".tsv") - return output + ".tsv" - EXPORTER_DESCRIPTORS = [{ 'format': 'stat', 'available': True,