-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
twister: Fix ram/rom reporting #34287
twister: Fix ram/rom reporting #34287
Conversation
The info of rom/ram usage by an application was lost along the way of data processing in twister. The commit add a line which pass further these metrices as well. Signed-off-by: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
The difference can be seen in the generated json report while calling
with and without the above commit |
I still see that the data is missing in the report when using --build-only. Will debug further |
With the previous logic memory footprint can only be saved in a report if a given test/sample was fully executed and passed (built and run), hence build-only tests were not providing these metrics. This commit modifies the logic so that it is enough to have the build successful to be able to get the memory footprint. Signed-off-by: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
The second commit fixes memory footprint reporting for build-only tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some enhancement, sorry for later submit
@@ -1215,6 +1215,7 @@ def main(): | |||
except queue.Empty: | |||
break | |||
else: | |||
inst.metrics.update(suite.instances[inst.name].metrics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe below code would be more safe.
ram_size = suite.instance.metrics.get("ram_size", 0)
rom_size = suite.instance.metrics.get("rom_size", 0)
inst.metrics["ram_size"] = ram_size
inst.metrics["rom_size"] = rom_size
The info of rom/ram usage by an application was lost along the
way of data processing in twister. The PR add a line which
pass further these metrices as well.
In addition a logic for memory footprint reporting is fixed.
With the previous logic memory footprint can only be saved in a report
if a given test/sample was fully executed and passed (built and run),
hence build-only tests were not providing these metrics. This PR
modifies the logic so that it is enough to have the build successful
to be able to get the memory footprint.
Fixes #34272
Signed-off-by: Maciej Perkowski Maciej.Perkowski@nordicsemi.no