diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-02-08 00:25:37 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-02-08 00:25:37 +0000 |
| commit | 5274c69abf4cb2b99ab9d92ac0081c0ec49bd2e4 (patch) | |
| tree | b1c8cb5eee1f878af368c7a5aad01fef6dd1bb8a /skin.py | |
| parent | 54042f13aaa98b655f0dfa907ef326430ec65d39 (diff) | |
| download | enigma2-5274c69abf4cb2b99ab9d92ac0081c0ec49bd2e4.tar.gz enigma2-5274c69abf4cb2b99ab9d92ac0081c0ec49bd2e4.zip | |
add some more profiles probes for more accurate progress
Diffstat (limited to 'skin.py')
| -rw-r--r-- | skin.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,6 +1,10 @@ +from Tools.Profile import profile, profile_final + +profile("LOAD:minidom") import xml.dom.minidom from os import path +profile("LOAD:enigma_skin") from enigma import eSize, ePoint, gFont, eWindow, eLabel, ePixmap, eWindowStyleManager, \ addFont, gRGB, eWindowStyleSkinned @@ -52,6 +56,7 @@ def loadSkin(name): config.skin = ConfigSubsection() config.skin.primary_skin = ConfigText(default = "skin.xml") +profile("LoadSkin") try: loadSkin(config.skin.primary_skin.value) except (SkinError, IOError, AssertionError), err: @@ -60,7 +65,9 @@ except (SkinError, IOError, AssertionError), err: config.skin.primary_skin.value = 'skin.xml' loadSkin('skin.xml') +profile("LoadSkinDefault") loadSkin('skin_default.xml') +profile("LoadSkinDefaultDone") def parsePosition(str): x, y = str.split(',') |
