Skip to content

Commit fc1ecc6

Browse files
committed
print a more verbose error message if the profile is empty
1 parent e887a6a commit fc1ecc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vmprof/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def get_option(self, name, type, default=None):
133133
def show(stats):
134134
p = stats.top_profile()
135135
if not p:
136-
print("no stats")
136+
print("No stats, profile is empty!\nDid you program run long enough (more than 1 second)?")
137137
return
138138

139139
p.sort(key=lambda x: x[1], reverse=True)

0 commit comments

Comments
 (0)