Commit 0327c057 authored by Jim Fulton's avatar Jim Fulton

Modified profiling to use repeat_count.

parent cb6bcb5a
...@@ -65,7 +65,7 @@ Examples ...@@ -65,7 +65,7 @@ Examples
s s
$Id: Test.py,v 1.7 1997/04/09 21:08:04 jim Exp $ $Id: Test.py,v 1.8 1997/04/10 13:48:56 jim Exp $
''' '''
# Copyright # Copyright
# #
...@@ -119,7 +119,7 @@ $Id: Test.py,v 1.7 1997/04/09 21:08:04 jim Exp $ ...@@ -119,7 +119,7 @@ $Id: Test.py,v 1.7 1997/04/09 21:08:04 jim Exp $
# #
# #
# #
__version__='$Revision: 1.7 $'[11:-2] __version__='$Revision: 1.8 $'[11:-2]
#! /usr/local/bin/python #! /usr/local/bin/python
...@@ -237,8 +237,10 @@ def publish(script,path_info,u=None,p=None,d=None,t=None): ...@@ -237,8 +237,10 @@ def publish(script,path_info,u=None,p=None,d=None,t=None):
__main__.env=env __main__.env=env
print profile print profile
publish_module(file, environ=env, stdout=open('/dev/null','w')) publish_module(file, environ=env, stdout=open('/dev/null','w'))
c=("for i in range(10): " c=("for i in range(%s): "
"publish_module(file, environ=env, stdout=open('/dev/null','w'))") "publish_module(file, environ=env, stdout=open('/dev/null','w'))"
% repeat_count
)
if profile: run(c,profile) if profile: run(c,profile)
else: run(c) else: run(c)
elif debug: elif debug:
...@@ -297,6 +299,9 @@ if __name__ == "__main__": main() ...@@ -297,6 +299,9 @@ if __name__ == "__main__": main()
# #
# $Log: Test.py,v $ # $Log: Test.py,v $
# Revision 1.8 1997/04/10 13:48:56 jim
# Modified profiling to use repeat_count.
#
# Revision 1.7 1997/04/09 21:08:04 jim # Revision 1.7 1997/04/09 21:08:04 jim
# Improved profiling behavior: # Improved profiling behavior:
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment