/[thuban]/branches/WIP-pyshapelib-bramz/Extensions/profiling/profiling.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Extensions/profiling/profiling.py

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

revision 2357 by jan, Tue Sep 28 19:54:50 2004 UTC revision 2721 by dpinte, Sat Jan 13 15:11:42 2007 UTC
# Line 1  Line 1 
1  # Copyright (C) 2003 by Intevation GmbH  # Copyright (C) 2003, 2004 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]> (2003)
4    # Jan-Oliver Wagner <[email protected]> (2003, 2004)
5  #  #
6  # This program is free software under the GPL (>=v2)  # This program is free software under the GPL (>=v2)
7  # Read the file COPYING coming with the software for details.  # Read the file COPYING coming with the software for details.
# Line 28  import profile Line 29  import profile
29  import time  import time
30  import pstats  import pstats
31    
32  from wxPython.lib.dialogs import wxScrolledMessageDialog  from wx.lib.dialogs import ScrolledMessageDialog
33    
34  from Thuban import _  from Thuban import _
35  from Thuban.UI.command import registry, Command  from Thuban.UI.command import registry, Command
36  from Thuban.UI.mainwindow import main_menu  from Thuban.UI.mainwindow import main_menu
 from Thuban.UI.extensionregistry import ExtensionDesc, ext_registry  
   
 ext_registry.add(ExtensionDesc(  
     name = 'profiling',  
     version = '1.0.0',  
     authors= [ 'Bernhard Herzog' ],  
     copyright = '2003 Intevation GmbH',  
     desc = _("Provide a profiler and a timer\n"  
              "for screen rendering.")))  
37    
38  #  #
39  # Customization  # Customization
# Line 115  def profile_screen_renderer(context): Line 107  def profile_screen_renderer(context):
107          finally:          finally:
108              sys.stdout = orig_stdout              sys.stdout = orig_stdout
109    
110          dlg = wxScrolledMessageDialog(context.mainwindow, msg,          dlg = ScrolledMessageDialog(context.mainwindow, msg,
111                                        _('Profile Screen Render'))                                        _('Profile Screen Render'))
112          dlg.ShowModal()          dlg.ShowModal()
113    

Legend:
Removed from v.2357  
changed lines
  Added in v.2721

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26