Implement read_report RPC

This commit is contained in:
Ivan Kravets
2023-07-27 14:53:17 +03:00
parent c4126ea5b3
commit 451a3fc87b

View File

@ -36,6 +36,10 @@ class MemUsageRPC(BaseRPCHandler):
)
return memusage.list_reports(report_dir)[-1]
@staticmethod
def read_report(path):
return memusage.read_report(path)
def summary(self, report_path):
max_top_items = 10
report_dir = os.path.dirname(report_path)