Skip to content

Conversation

briancoutinho
Copy link
Contributor

Summary:

About

We can define hbt metrics in terms of a multiple events. However, we lack a way to specify the formula to combine these events,
today that is done manually outside in code or by the user directly.
We add an optional "reducer" functor to our metric definition that helps identify how to reduce performance events..

Included

  • Reducer functor type definition and adding it to Metric class (Metric.h/.cpp.
  • Perf ReadValues leverages the reducer functor to combine multiple events (CpuEventsGroup.h).
  • Include a simple addition and rate reducer (BuiltinMetrics.h).
  • Use the rate reducer in instructions/cycle.

Differential Revision: D45092289

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Apr 21, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45092289

Summary:
Pull Request resolved: facebookincubator#133

## About
We can define hbt metrics in terms of a multiple events. However, we lack a way to specify the formula to combine these events,
today that is done manually outside in code or by the user directly.
We add an optional "reducer" functor to our metric definition that helps identify how to reduce performance events..

Included
* Reducer functor type definition and adding it to Metric class (Metric.h/.cpp.
* Perf ReadValues leverages the reducer functor to combine multiple events (CpuEventsGroup.h).
* Include a simple addition and rate reducer (BuiltinMetrics.h).
* Use the rate reducer in instructions/cycle.

Differential Revision: D45092289

fbshipit-source-id: f7318c79778296f052ac499299423764710f1888
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45092289

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in e5c1002.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants