mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 18:44:27 +02:00
Implement read_report RPC
This commit is contained in:
@@ -36,6 +36,10 @@ class MemUsageRPC(BaseRPCHandler):
|
|||||||
)
|
)
|
||||||
return memusage.list_reports(report_dir)[-1]
|
return memusage.list_reports(report_dir)[-1]
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def read_report(path):
|
||||||
|
return memusage.read_report(path)
|
||||||
|
|
||||||
def summary(self, report_path):
|
def summary(self, report_path):
|
||||||
max_top_items = 10
|
max_top_items = 10
|
||||||
report_dir = os.path.dirname(report_path)
|
report_dir = os.path.dirname(report_path)
|
||||||
|
Reference in New Issue
Block a user