PerfMeasurements: add ability to simulate measurements #358
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The "bottom" measurements - meaning the most core measurement in a list of measurements that we may run can now be "simulated".
This means that instead of actually running the measurement tools/commands we instead run the following command:
And instead of returning real measurement results we return the same structure of data with a single 0 value perf interval.
Combining this we can now run all of our ENRT recipes in a "simulation" that preserves the number of commands per test recipe run and should return results compatible with all of our tooling with just the basic 0 value.
The cpu measurement simulation does actually call the real measurement, this is because this isn't a "bottom/core" measurement and is instead designed to always wrap some other measurement.
Tests
I want to use this to generate baseline to threshold mapping for all of the tests and machines that we currently use so i'll link those jobs to here once i have confirmed everything works.
Reviews
(Please add a list of reviewers that should check the validity and sanity of
this merge request before it's accepted. Use the
@username
syntax. If youdon't know who to mention just link
@all
.)Closes: #