forked from hippojay/plugin.video.plexbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.py
More file actions
26 lines (21 loc) · 706 Bytes
/
default.py
File metadata and controls
26 lines (21 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import xbmcaddon
import os
import time
plexbmc_start = time.time()
print "===== PLEXBMC START [id: %s] =====" % plexbmc_start
#import StringIO
#import cProfile
#import pstats
from common import GLOBAL_SETUP #Needed first to setup import locations
import plexbmc
plexbmc.start_plexbmc()
#cProfile.run('plexbmc.start_plexbmc()', 'statsfile')
#stream = StringIO.StringIO()
#stats = pstats.Stats('statsfile', stream=stream)
#stats.sort_stats('tottime')
#stats.print_stats()
# Stream now contains the report text.
# Can be accessed with stream.getvalue()
#print stream.getvalue()
print "===== PLEXBMC STOP [id: %s]: %s seconds =====" % (plexbmc_start , ( time.time() - plexbmc_start ))
sys.modules.clear()