We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6694c53 + 05e9714 commit 42f683fCopy full SHA for 42f683f
1 file changed
mprof
@@ -431,6 +431,7 @@ def plot_action():
431
"mprofile_*.dat files, generated by the "
432
"'mprof run' command.")
433
sys.exit(-1)
434
+ print("Using last profile data.")
435
filenames = [profiles[-1]]
436
else:
437
filenames = []
@@ -441,10 +442,13 @@ def plot_action():
441
442
443
try:
444
n = int(arg)
445
+ if not profiles[n] in filenames:
446
+ filenames.append(profiles[n])
447
except ValueError:
448
print("Input file not found: " + arg)
- if not profiles[n] in filenames:
- filenames.append(profiles[n])
449
+ if not len(filenames):
450
+ print("No files found from given input.")
451
+ sys.exit(-1)
452
453
pl.figure(figsize=(14, 6), dpi=90)
454
if len(filenames) > 1 or options.no_timestamps:
0 commit comments