-
Notifications
You must be signed in to change notification settings - Fork 2
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
79 collect optimization metrics #121
Conversation
a7e2920
to
1fa2d31
Compare
inspect = \case | ||
Phi -> pure () | ||
Rho -> pure () | ||
Sigma -> pure () | ||
VTX -> pure () | ||
Label _ -> pure () | ||
Alpha _ -> pure () | ||
MetaAttr _ -> pure () |
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.
couldn't this have simply been
inspect = \case | |
Phi -> pure () | |
Rho -> pure () | |
Sigma -> pure () | |
VTX -> pure () | |
Label _ -> pure () | |
Alpha _ -> pure () | |
MetaAttr _ -> pure () | |
inspect = const $ pure () |
?
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.
It could, but I wasn't sure it should have been.
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.
I still don't know what's a dataless attribute.
Closes #79
PR-Codex overview
Focus of this PR:
This PR focuses on adding metrics collection functionality to the
eo-phi-normalizer
package.Detailed summary:
MetricsTestSet
andMetricsTest
data types to represent metrics tests.Metrics
data type to represent various metrics.collectMetrics
function to collect metrics from a given program.Inspectable
type class and instances forProgram
,Binding
,Attribute
, andObject
to enable metrics collection.Test.Metrics.Phi
module to include tests for metrics collection.eo-phi-normalizer.cabal
to includegeneric-lens
andlens
as dependencies.eo-phi-normalizer-test
to includeTest.Metrics.Phi
as a test module.Metrics
module toeo-phi-normalizer
package.