diff --git a/platformio/home/rpc/handlers/memusage.py b/platformio/home/rpc/handlers/memusage.py index 88b04b0598..091ad88a37 100644 --- a/platformio/home/rpc/handlers/memusage.py +++ b/platformio/home/rpc/handlers/memusage.py @@ -36,6 +36,10 @@ async def profile(self, project_dir, env, options=None): ) 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)