Changeset c70eb7c in sasview for guiframe/local_perspectives
- Timestamp:
- Mar 9, 2011 7:02:50 PM (14 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/plotting.py
r5c4b674 rc70eb7c 76 76 pass 77 77 78 #def _on_plot_event(self, event): 79 # return profile(self.tested_on_plot_event, event) 80 78 81 79 def _on_plot_event(self, event): 82 80 """ … … 165 163 166 164 return 167 168 def profile(fn, *args, **kw):169 import cProfile, pstats, os170 global call_result171 def call():172 global call_result173 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_result181 182 165
Note: See TracChangeset
for help on using the changeset viewer.