demo_window.py
changeset 28 feee783d4fc5
parent 19 5e78d52ebb24
child 29 c0cdef06fd16
--- a/demo_window.py	Wed Oct 12 00:58:46 2011 +0200
+++ b/demo_window.py	Wed Oct 12 10:11:27 2011 +0200
@@ -1,11 +1,11 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
+import cProfile, pstats
 import locale
 import os
 
 from tuikit.application import Application
-from tuikit.editfield import EditField
 from tuikit.window import Window
 from tuikit.button import Button
 
@@ -46,5 +46,9 @@
     locale.setlocale(locale.LC_ALL, '')
     os.environ['ESCDELAY'] = '25' # do not wait 1 second after pressing Escape key
     app = MyApplication()
-    app.start()
+    #app.start()
+    
+    cProfile.run('app.start()', 'appstats')
+    p = pstats.Stats('appstats')
+    p.sort_stats('time', 'cumulative').print_stats(20)