mirror of https://gitlab.com/bashrc2/epicyon
More inbox benchmarking granularity
parent
c9eee595c5
commit
f602d5ecf9
10
daemon.py
10
daemon.py
|
@ -4588,6 +4588,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
authorized,
|
authorized,
|
||||||
self.server.ocapAlways)
|
self.server.ocapAlways)
|
||||||
if inboxFeed:
|
if inboxFeed:
|
||||||
|
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
||||||
|
'show status done',
|
||||||
|
'show inbox json')
|
||||||
if self._requestHTTP():
|
if self._requestHTTP():
|
||||||
nickname = self.path.replace('/users/', '')
|
nickname = self.path.replace('/users/', '')
|
||||||
nickname = nickname.replace('/inbox', '')
|
nickname = nickname.replace('/inbox', '')
|
||||||
|
@ -4612,6 +4615,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
maxPostsInFeed, 'inbox',
|
maxPostsInFeed, 'inbox',
|
||||||
authorized,
|
authorized,
|
||||||
self.server.ocapAlways)
|
self.server.ocapAlways)
|
||||||
|
self._benchmarkGETtimings(GETstartTime,
|
||||||
|
GETtimings,
|
||||||
|
'show status done',
|
||||||
|
'show inbox page')
|
||||||
msg = htmlInbox(self.server.defaultTimeline,
|
msg = htmlInbox(self.server.defaultTimeline,
|
||||||
self.server.recentPostsCache,
|
self.server.recentPostsCache,
|
||||||
self.server.maxRecentPosts,
|
self.server.maxRecentPosts,
|
||||||
|
@ -4630,6 +4637,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.projectVersion,
|
self.server.projectVersion,
|
||||||
self._isMinimal(nickname),
|
self._isMinimal(nickname),
|
||||||
self.server.YTReplacementDomain)
|
self.server.YTReplacementDomain)
|
||||||
|
self._benchmarkGETtimings(GETstartTime, GETtimings,
|
||||||
|
'show status done',
|
||||||
|
'show inbox html')
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
self._set_headers('text/html',
|
self._set_headers('text/html',
|
||||||
len(msg),
|
len(msg),
|
||||||
|
|
Loading…
Reference in New Issue