From 451a3fc87b340829eed579e6ad3707ead51e7382 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 27 Jul 2023 14:53:17 +0300 Subject: [PATCH] Implement read_report RPC --- platformio/home/rpc/handlers/memusage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platformio/home/rpc/handlers/memusage.py b/platformio/home/rpc/handlers/memusage.py index 88b04b05..091ad88a 100644 --- a/platformio/home/rpc/handlers/memusage.py +++ b/platformio/home/rpc/handlers/memusage.py @@ -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)