Changeset c70eb7c in sasview for guiframe/local_perspectives


Ignore:
Timestamp:
Mar 9, 2011 7:02:50 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
8b6f489
Parents:
99abf5d
Message:

working data_panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/plotting.py

    r5c4b674 rc70eb7c  
    7676        pass 
    7777     
    78     #def _on_plot_event(self, event): 
    79     #     return profile(self.tested_on_plot_event, event) 
    80      
     78   
    8179    def _on_plot_event(self, event): 
    8280        """ 
     
    165163             
    166164        return 
    167  
    168 def profile(fn, *args, **kw): 
    169     import cProfile, pstats, os 
    170     global call_result 
    171     def call(): 
    172         global call_result 
    173         call_result = fn(*args, **kw) 
    174     cProfile.runctx('call()', dict(call=call), {}, 'profile.txt') 
    175     stats = pstats.Stats('profile.txt') 
    176     stats.sort_stats('time') 
    177     #stats.sort_stats('calls') 
    178     stats.print_stats() 
    179     #os.unlink('profile.out') 
    180     return call_result 
    181  
    182165    
Note: See TracChangeset for help on using the changeset viewer.