summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdupfiles7
1 files changed, 6 insertions, 1 deletions
diff --git a/dupfiles b/dupfiles
index b1de7fc..1956c1d 100755
--- a/dupfiles
+++ b/dupfiles
@@ -228,4 +228,9 @@ def main():
if __name__ == '__main__':
- main()
+ profname = os.environ.get('DUPFILES_PROFILE')
+ if profname:
+ import cProfile
+ cProfile.run('main()', profname)
+ else:
+ main()