Closed Roger-Shepherd closed 3 years ago
The functionality as described is implemented in a fix to bench+size.py. Once accepted this will close this issue.
I tested your patch and it works nicely. Maybe the documentation should clarify that all the sections listed with --text
, --data
etc... are then included in the respective --metric
category text
, data
etc if the category is specified in --metric
(unless it is the default only: text
). I can add that to the doc if it sounds reasonable.
I think it would be a good idea to make that change to the documentation.
I'll push a pull request as soon as I get the chance (btw I hadn't realized I was logged in with my other account paoloR01).
See isse #117 for background
The documentation for the parameters
text
,data
,rodata
,bss
andmetric
all say they take aspace separated list
as inThe implementation uses `action='append'
which requires the parameter name to be mentioned for each parameter rather than accepting a space separated list of arguments. To get the documented effect,
nargs='+'
should be used in place of `action='append'.Which is the desired behaviour? If it is as documented I'm happy to make the change. (Pretty sure this is what's wanted).
What is this mechanism used for? [I can see this for metric e.g. text + rodata....]