File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ The REST API provides the following endpoints:
89
89
90
90
Get the latest runtime stats (encode/decode speed).
91
91
92
+ .. http :get :: /verbose_stats
93
+
94
+ Get the verbose runtime stats (encode/decode speed, total runtime).
92
95
93
96
Use REST API in your own program
94
97
--------------------------------
Original file line number Diff line number Diff line change @@ -327,6 +327,12 @@ async def read_stats():
327
327
"""
328
328
return session ["chat_mod" ].stats ()
329
329
330
+ @app .get ("/verbose_stats" )
331
+ async def read_stats_verbose ():
332
+ """
333
+ Get the verbose runtime stats.
334
+ """
335
+ return session ["chat_mod" ].stats (verbose = True )
330
336
331
337
ARGS = convert_args_to_argparser ().parse_args ()
332
338
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments