Remove cProfile program metrics measurements
This commit is contained in:
parent
edbb99b2e2
commit
74e801cf4d
1 changed files with 0 additions and 12 deletions
|
@ -7,10 +7,6 @@ import copy
|
||||||
|
|
||||||
import xbmcgui
|
import xbmcgui
|
||||||
|
|
||||||
from cProfile import Profile
|
|
||||||
from pstats import Stats
|
|
||||||
from StringIO import StringIO
|
|
||||||
|
|
||||||
from .get_metadata import GetMetadataTask, reset_collections
|
from .get_metadata import GetMetadataTask, reset_collections
|
||||||
from . import common, sections
|
from . import common, sections
|
||||||
from .. import utils, timing, backgroundthread, variables as v, app
|
from .. import utils, timing, backgroundthread, variables as v, app
|
||||||
|
@ -380,8 +376,6 @@ class FullSync(common.libsync_mixin):
|
||||||
|
|
||||||
@utils.log_time
|
@utils.log_time
|
||||||
def run(self):
|
def run(self):
|
||||||
profile = Profile()
|
|
||||||
profile.enable()
|
|
||||||
self.current_sync = timing.plex_now()
|
self.current_sync = timing.plex_now()
|
||||||
# Delete playlist and video node files from Kodi
|
# Delete playlist and video node files from Kodi
|
||||||
utils.delete_playlists()
|
utils.delete_playlists()
|
||||||
|
@ -417,12 +411,6 @@ class FullSync(common.libsync_mixin):
|
||||||
if self.callback:
|
if self.callback:
|
||||||
self.callback(successful)
|
self.callback(successful)
|
||||||
LOG.info('Done full_sync')
|
LOG.info('Done full_sync')
|
||||||
profile.disable()
|
|
||||||
string_io = StringIO()
|
|
||||||
stats = Stats(profile, stream=string_io).sort_stats('cumulative')
|
|
||||||
stats.print_stats()
|
|
||||||
LOG.info('cProfile result: ')
|
|
||||||
LOG.info(string_io.getvalue())
|
|
||||||
|
|
||||||
|
|
||||||
def start(show_dialog, repair=False, callback=None):
|
def start(show_dialog, repair=False, callback=None):
|
||||||
|
|
Loading…
Reference in a new issue