Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions avr_demo/run_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def run_bloat_analysis():
results = {}

bloat_configs = [
("serde", "test_serde", []),
("picojson", "test_picojson", []),
("serde", "test_serde", ["int8"]),
("picojson", "test_picojson", ["pico-tiny", "int8"]),
]

# Bloat analysis doesn't depend on nesting depth, so we run it once for each config.
Expand All @@ -111,8 +111,13 @@ def run_bloat_analysis():
# Construct the cargo bloat command
command = ["cargo", "bloat", "--release", "--message-format=json"]
if extra_features:
command.append("--features")
command.append(",".join(extra_features))
command.extend(
(
"--no-default-features",
"--features",
",".join(extra_features),
)
)
command.extend(["--example", example])

try:
Expand Down