-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_allocator: Add hooks to test_harness
This CL adds hook functions that cna be overridden before and after each call to Allocate, Deallocate, and Reallocate. This allows later CLs to add extra handling to each request, e.g. recording timestamps for benchmarking. It also pulls the PRNG into the test harness, as this simplifies its usage. Change-Id: I27bdb52e62f5ab13a6be5d6855baa54542d2841f Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/238416 Docs-Not-Needed: Aaron Green <[email protected]> Commit-Queue: Aaron Green <[email protected]> Reviewed-by: Taylor Cramer <[email protected]> Lint: Lint 🤖 <[email protected]>
- Loading branch information
1 parent
c25923e
commit 1d143bb
Showing
4 changed files
with
135 additions
and
82 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
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
Oops, something went wrong.