WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

Commit d1e9f0cf authored by John Zhang's avatar John Zhang
Browse files

get_json_log function

parent ce635e3f
......@@ -198,20 +198,18 @@ class TaskSet:
'error output written to %s' % errlog_file))
del data[task]
record = {
self.results = {task.name: task.get_result() for task in data}
return self.results
def get_json_log(self):
jslog = {
'name': self.name,
'iterations': self.iterations,
'benchmark': self.benchmark,
'callback': {k: self.callback[k] for k in ('name', 'param')},
'results': {t.name: data[t] for t in data},
'datapoints': {t.name: t.stats for t in self.tasks},
# save to result file
with self.resfile.open('w') as fp:
json.dump(record, fp, indent=2, separators=(', ', ': '))
self.results = {task.name: task.get_result() for task in data}
return self.results
return jslog
class Task:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment