-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: instantiate perf observer for each iteration (#3585)
Changes to instantiate a `PerformanceObserver` instance for each iteration of a benchmark run. This prevents the observer from being killed before all iterations of the wrapped function run due to environment changes that may cause the observer from falling out of scope and being GCed. Previously in github actions only a single run's results were recorded as the observer was killed after the first iteration, though this wasn't the case when running locally. Additionally adds the option to record profiles for benchmarks and write them to a directory. This can be used to compare call stacks of benchmarks across changes to the code. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information
1 parent
3052275
commit 3827d93
Showing
2 changed files
with
174 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters