/[escript]/trunk/escript/py_src/__init__.py
ViewVC logotype

Diff of /trunk/escript/py_src/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1809 by ksteube, Thu Sep 25 06:43:44 2008 UTC revision 2285 by jfenwick, Fri Feb 20 06:02:30 2009 UTC
# Line 21  __url__="http://www.uq.edu.au/esscc/escr Line 21  __url__="http://www.uq.edu.au/esscc/escr
21    
22  from escript import *  from escript import *
23  from util import *  from util import *
24    
25    import os
26    import atexit
27    
28    def escriptOnExitProfiling():
29        if os.name=='posix':
30        pid=os.getpid()
31        os.system("cat /proc/%d/status > memescript.%d"%(pid,pid))
32        
33    if 'escriptExitProfiling' in os.environ:
34        atexit.register(escriptOnExitProfiling)

Legend:
Removed from v.1809  
changed lines
  Added in v.2285

  ViewVC Help
Powered by ViewVC 1.1.26