We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ff038f commit 05e9714Copy full SHA for 05e9714
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 = []
@@ -445,6 +446,9 @@ def plot_action():
445
446
filenames.append(profiles[n])
447
except ValueError:
448
print("Input file not found: " + arg)
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