projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add plugin weight to PluginDescriptor... so the plugin start order can be changed now
[vuplus_dvbapp]
/
lib
/
python
/
Tools
/
Profile.py
diff --git
a/lib/python/Tools/Profile.py
b/lib/python/Tools/Profile.py
index
5fee531
..
4d8dd90
100644
(file)
--- a/
lib/python/Tools/Profile.py
+++ b/
lib/python/Tools/Profile.py
@@
-9,6
+9,7
@@
profile_start = time.time()
profile_data = {}
total_time = 1
profile_data = {}
total_time = 1
+profile_file = None
try:
profile_old = open(resolveFilename(SCOPE_CONFIG, "profile"), "r").readlines()
try:
profile_old = open(resolveFilename(SCOPE_CONFIG, "profile"), "r").readlines()
@@
-22,7
+23,10
@@
try:
except:
print "no profile data available"
except:
print "no profile data available"
-profile_file = open(resolveFilename(SCOPE_CONFIG, "profile"), "w")
+try:
+ profile_file = open(resolveFilename(SCOPE_CONFIG, "profile"), "w")
+except IOError:
+ print "WARNING: couldn't open profile file!"
def profile(id):
now = time.time() - profile_start
def profile(id):
now = time.time() - profile_start