aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-02-08 00:25:37 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-02-08 00:25:37 +0000
commit5274c69abf4cb2b99ab9d92ac0081c0ec49bd2e4 (patch)
treeb1c8cb5eee1f878af368c7a5aad01fef6dd1bb8a
parent54042f13aaa98b655f0dfa907ef326430ec65d39 (diff)
downloadenigma2-5274c69abf4cb2b99ab9d92ac0081c0ec49bd2e4.tar.gz
enigma2-5274c69abf4cb2b99ab9d92ac0081c0ec49bd2e4.zip
add some more profiles probes for more accurate progress
-rw-r--r--lib/python/Screens/InfoBar.py9
-rw-r--r--lib/python/Screens/Screen.py8
-rw-r--r--skin.py7
3 files changed, 22 insertions, 2 deletions
diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py
index 1e8f761f..228ca4ef 100644
--- a/lib/python/Screens/InfoBar.py
+++ b/lib/python/Screens/InfoBar.py
@@ -1,14 +1,21 @@
+from Tools.Profile import profile, profile_final
+
from Screen import Screen
+profile("LOAD:MovieSelection")
from Screens.MovieSelection import MovieSelection
+profile("LOAD:ChannelSelectionRadio")
from Screens.ChannelSelection import ChannelSelectionRadio
+profile("LOAD:ChoiceBox")
from Screens.ChoiceBox import ChoiceBox
+profile("LOAD:InitBar_Components")
from Components.Sources.Source import ObsoleteSource
from Components.ActionMap import HelpableActionMap
from Components.config import config
from Components.ServiceEventTracker import ServiceEventTracker
+profile("LOAD:InfoBarGenerics")
from Screens.InfoBarGenerics import InfoBarShowHide, \
InfoBarNumberZap, InfoBarChannelSelection, InfoBarMenu, InfoBarRdsDecoder, \
InfoBarEPG, InfoBarEvent, InfoBarServiceName, InfoBarSeek, InfoBarInstantRecord, \
@@ -18,8 +25,10 @@ from Screens.InfoBarGenerics import InfoBarShowHide, \
InfoBarSummarySupport, InfoBarMoviePlayerSummarySupport, InfoBarTimeshiftState, InfoBarTeletextPlugin, InfoBarExtensions, \
InfoBarSubtitleSupport, InfoBarPiP, InfoBarPlugins, InfoBarSleepTimer, InfoBarServiceErrorPopupSupport
+profile("LOAD:HelpableScreen")
from Screens.HelpMenu import HelpableScreen
+profile("LOAD:enigma")
from enigma import iPlayableService
class InfoBar(InfoBarShowHide,
diff --git a/lib/python/Screens/Screen.py b/lib/python/Screens/Screen.py
index 585f15cf..4c4f117b 100644
--- a/lib/python/Screens/Screen.py
+++ b/lib/python/Screens/Screen.py
@@ -1,9 +1,13 @@
-from Components.HTMLSkin import HTMLSkin
+from Tools.Profile import profile, profile_final
+
+profile("LOAD:GUISkin")
from Components.GUISkin import GUISkin
+profile("LOAD:Source")
from Components.Sources.Source import Source
+profile("LOAD:GUIComponent")
from Components.GUIComponent import GUIComponent
-class Screen(dict, HTMLSkin, GUISkin):
+class Screen(dict, GUISkin):
ALLOW_SUSPEND = False
diff --git a/skin.py b/skin.py
index ac66c8d4..21ec62ae 100644
--- a/skin.py
+++ b/skin.py
@@ -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(',')