orca r3955 - in trunk: . test/harness
- From: wwalker svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r3955 - in trunk: . test/harness
- Date: Wed, 4 Jun 2008 13:29:48 +0000 (UTC)
Author: wwalker
Date: Wed Jun 4 13:29:48 2008
New Revision: 3955
URL: http://svn.gnome.org/viewvc/orca?rev=3955&view=rev
Log:
Fall back to 2.4 profile module if 2.5 cProfile module is not available.
Modified:
trunk/ChangeLog
trunk/test/harness/runprofiler.py
Modified: trunk/test/harness/runprofiler.py
==============================================================================
--- trunk/test/harness/runprofiler.py (original)
+++ trunk/test/harness/runprofiler.py Wed Jun 4 13:29:48 2008
@@ -1,3 +1,6 @@
-import cProfile
+try:
+ import cProfile as myprofiler
+except:
+ import profile as myprofiler
import orca.orca
-cProfile.run('orca.orca.main()', 'orcaprof')
+myprofiler.run('orca.orca.main()', 'orcaprof')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]