projects
/
invirt/packages/invirt-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7726935
)
Make the profiling depend on an environment variable "SIPB_XEN_PROFILE" being set...
author
Quentin Smith
<quentin@mit.edu>
Tue, 27 Nov 2007 07:11:03 +0000
(
02:11
-0500)
committer
Quentin Smith
<quentin@mit.edu>
Tue, 27 Nov 2007 07:11:03 +0000
(
02:11
-0500)
svn path=/trunk/web/; revision=248
main.py
patch
|
blob
|
history
diff --git
a/main.py
b/main.py
index
d4ae1c5
..
ab626e2
100755
(executable)
--- a/
main.py
+++ b/
main.py
@@
-640,7
+640,8
@@
if __name__ == '__main__':
if not operation:
operation = 'list'
- main(operation, u, fields)
- #import profile
- #profile.run('main(operation, u, fields)', 'log-'+operation)
-
+ if os.getenv("SIPB_XEN_PROFILE"):
+ import profile
+ profile.run('main(operation, u, fields)', 'log-'+operation)
+ else:
+ main(operation, u, fields)