Skip to content

Better error reporting/handling for analysis #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
brnorris03 opened this issue Sep 11, 2015 · 0 comments
Open

Better error reporting/handling for analysis #15

brnorris03 opened this issue Sep 11, 2015 · 0 comments

Comments

@brnorris03
Copy link
Contributor

When for some reason the data is not generated with autoperf and user attempts analysis, the error is very cryptic and it's not clear what to do. Handle this case better and give user instructions on what to do next.

norris@compute-0-5:~/temp/autoperf1$ autoperf -y
*** Parsing config files (.autoperf.cfg)... invalid, trying next option...
*** Parsing config files (autoperf.cfg)... done
*** Experiment pi 2015-09-11-14-37-33-149566 is not finished yet, ignore
*** Analyzing pi 2015-09-11-14-41-25-001473 ...
Traceback (most recent call last):
File "/home/norris/autoperf/bin/autoperf", line 243, in
analyze_experiments(options.insnames)
File "/home/norris/autoperf/bin/autoperf", line 234, in analyze_experiments
analyze_an_experiment(exp, insnames)
File "/home/norris/autoperf/bin/autoperf", line 226, in analyze_an_experiment
experiment.analyze()
File "/home/norris/autoperf/lib/python2.7/site-packages/autoperf/experiment.py", line 481, in analyze
self.platform.collect_data()
File "/home/norris/autoperf/lib/python2.7/site-packages/autoperf/platforms/generic.py", line 109, in collect_data
self.tool.collect_data()
File "/home/norris/autoperf/lib/python2.7/site-packages/autoperf/tools/interface.py", line 65, in collect_data
ppk = PPK("%s/data.ppk" % self.experiment.insname, "");
File "/home/norris/autoperf/lib/python2.7/site-packages/autoperf/utils/PPK.py", line 478, in init
f = gzip.open(filename, 'rb')
File "/usr/lib/python2.7/gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "/usr/lib/python2.7/gzip.py", line 94, in init
fileobj = self.myfileobj = builtin.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '2015-09-11-14-41-25-001473/data.ppk'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant