Skip to content

Commit

Permalink
Implement read_report RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Jul 27, 2023
1 parent c4126ea commit 451a3fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platformio/home/rpc/handlers/memusage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 451a3fc

Please sign in to comment.