Changeset 1768 for trunk/coopr/pysp/ef_writer_script.py
- Timestamp:
- Oct 28, 2009 8:14:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/coopr/pysp/ef_writer_script.py
r1753 r1768 14 14 from optparse import OptionParser 15 15 16 import pyutilib 16 import pyutilib.services 17 17 import textwrap 18 18 import traceback … … 85 85 # Call the main ef writer with profiling. 86 86 # 87 tfile = pyutilib. TempfileManager.create_tempfile(suffix=".profile")87 tfile = pyutilib.services.TempfileManager.create_tempfile(suffix=".profile") 88 88 tmp = cProfile.runctx('run_ef_writer(options,args)',globals(),locals(),tfile) 89 89 p = pstats.Stats(tfile).strip_dirs() … … 101 101 p.print_callers(options.profile) 102 102 p.print_callees(options.profile) 103 pyutilib. TempfileManager.clear_tempfiles()103 pyutilib.services.TempfileManager.clear_tempfiles() 104 104 ans = [tmp, None] 105 105 else:
Note: See TracChangeset
for help on using the changeset viewer.