mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-08 08:03:18 +00:00
Removed profilling code accidentally commited
This commit is contained in:
parent
36cd765c21
commit
068a842184
3 changed files with 5 additions and 24 deletions
|
|
@ -127,13 +127,6 @@ class Library(threading.Thread):
|
|||
@stop()
|
||||
def service(self):
|
||||
|
||||
from kodi_six import xbmc, xbmcaddon
|
||||
from datetime import datetime
|
||||
path = xbmcaddon.Addon(id='plugin.video.jellyfin').getAddonInfo('path')
|
||||
from pyinstrument import Profiler
|
||||
|
||||
profiler = Profiler()
|
||||
profiler.start()
|
||||
''' If error is encountered, it will rerun this function.
|
||||
Start new "daemon threads" to process library updates.
|
||||
(actual daemon thread is not supported in Kodi)
|
||||
|
|
@ -153,17 +146,9 @@ class Library(threading.Thread):
|
|||
self.worker_userdata()
|
||||
self.worker_remove()
|
||||
self.worker_notify()
|
||||
profiler.stop()
|
||||
with open(str(path)+'/output-'+str(datetime.now())+'.html', 'w+') as output:
|
||||
output.write(profiler.output_html().encode('utf-8'))
|
||||
if self.pending_refresh:
|
||||
from kodi_six import xbmc, xbmcaddon
|
||||
from datetime import datetime
|
||||
path = xbmcaddon.Addon(id='plugin.video.jellyfin').getAddonInfo('path')
|
||||
from pyinstrument import Profiler
|
||||
|
||||
profiler = Profiler()
|
||||
profiler.start()
|
||||
if self.pending_refresh:
|
||||
|
||||
window('jellyfin_sync.bool', True)
|
||||
|
||||
if self.total_updates > self.progress_display:
|
||||
|
|
@ -185,11 +170,6 @@ class Library(threading.Thread):
|
|||
self.screensaver = get_screensaver()
|
||||
set_screensaver(value="")
|
||||
|
||||
profiler.stop()
|
||||
with open(str(path)+'/output-'+str(datetime.now())+'.html', 'w+') as output:
|
||||
output.write(profiler.output_html().encode('utf-8'))
|
||||
|
||||
|
||||
if (self.pending_refresh and not self.download_threads and not self.writer_threads['updated'] and not self.writer_threads['userdata'] and not self.writer_threads['removed']):
|
||||
self.pending_refresh = False
|
||||
self.save_last_sync()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue