-
Notifications
You must be signed in to change notification settings - Fork 41
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
Metric Comparison + API Updates #274
Conversation
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.
Couple general additional comments:
1- design__lint_errors__count
-> design__lint_error__count
where error
is without an s
.
2- I think any change in a critical variable should be reported regardless of value higher_is_better
. As such, table verbosity CRITICAL
will always display critical changes.
3- How to apply filter?
python3 -m openlane.common.metrics compare ./designs/spm/runs/run_1/final/metrics.json ./designs/spm/runs/run_2/final/metrics.json --table-out diff.out --filter 'design__lint_errors__count'
and
python3 -m openlane.common.metrics compare ./designs/spm/runs/run_1/final/metrics.json ./designs/spm/runs/run_2/final/metrics.json --table-out diff.out
produce the same diff.out
file.
4- I think a CLI argument for decimal points would be a nice addition.
5- deltas in openlane.common.metrics compare
are displayed at the end of the file. I think they should be at the beginning of the file.
""" | ||
Creates a small summary of the differences between two ``metrics.json`` files. | ||
""" | ||
if table_verbosity == "NONE": |
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.
why would that be an option ?
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.
If you just want the highlights and not the table
fix changed condition
timing__hold__tns aggregator -> min_aggregator
@kareefardi I can't say I agree with every change to a "critical" metric being critical. For example-- slack increasing is not "critical" as in demanding attention, but slack decreasing very much is. What this tells me is that we're not aligned on the definition of critical: my definition of critical was "a change impacting the manufacturability of a design." Any change in I/O pin count, for example, is critical (as evidenced by it having no How did you define critical? |
@kareefardi Bot issue seems to be that the current HEAD of master doesn't have metrics uploaded. Simplest solution would be to just merge this PR. |
openlane.common
get_latest_file
, that finds the latest file with a certain filename in a specific folderFilter
object aggregating the functionality of wildcardsopenlane.common.metrics
to aggregate functions dealing with metrics, replacing previous file__main__
file of this module has three commands,compare
,compare-multiple
,compare-main
:compare
: Compares two metrics files and generates an output summarycompare-multiple
: Compares two folders of metrics files and generates an output summarycompare-main
: Compares a folder of metric files with metrics fetched fromefabless/openlane-metrics
and generates an output summaryMetric
object created, encapsulating the metric name, its aggregator, and some other functionality related to evaluating changes in metricsiter
for routing metricsMetrics
of the various metrics we aggregated so faraggregate_metrics
now uses the metric library for aggregators as a default valueopenlane.state
__main__
file that returns the latest state for a run directory (usingget_latest_file
, with an options to extract the metrics thereof for a file (useful for scripts)openlane.config.Config
:refg::
to return the glob string verbatim if the glob returns no resultsopenlane.config.Macro
:from_state
that automatically creates aMacro
object from aState
objectScopedFile
, which is a file that's deleted as soon as it's deconstructedKLayout.*
:.get_cli_args()
%OL_METRIC_I
instead of having to use other communication channelsMagic.*
:MAGICRC
is a relative pathNetgen.LVS
,Checker.LVS
:httpx
to replacerequests
as the dependency for HTTP functionsCI and Testing
main
functionpytest-xdist
to dev dependencies, so multiple tests can be run in parallelDepends on efabless/openlane2-step-unit-tests#21