take time hls

This commit is contained in:
Roy Olav Purser 2021-05-28 17:09:15 +02:00
parent e84e643162
commit 6cd4acd9c3
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -218,6 +218,7 @@ except Exception as e:
logger.info(e) logger.info(e)
async def rewrite(upstream, current, proxy): async def rewrite(upstream, current, proxy):
rewrite_start = (time.time_ns() // 1_000_000)
ndata = None ndata = None
text = None text = None
try: try:
@ -268,6 +269,8 @@ async def rewrite(upstream, current, proxy):
else: else:
ndata += links.pop(0) ndata += links.pop(0)
ndata += "\n" ndata += "\n"
rewrite_stop = (time.time_ns() // 1_000_000)
logger.info(str(rewrite_stop - rewrite_start))
return ndata return ndata
class MainHandler(tornado.web.RequestHandler): class MainHandler(tornado.web.RequestHandler):