Generate code size reports for allocator implementations.
|
|
using | pw::allocator::size_report::BlockType = SmallBlock |
| | Default block type to use for tests.
|
| |
◆ MeasureAllocator()
| int pw::allocator::size_report::MeasureAllocator |
( |
Allocator & |
allocator, |
|
|
uint32_t |
mask |
|
) |
| |
Exercises an allocator as part of a size report.
- Parameters
-
| [in] | allocator | The allocator to exercise. |
| [in] | mask | A bitmap that can be passed to PW_BLOAT_COND and PW_BLOAT_EXPR. See those macros for details. |
◆ MeasureBlock()
| int pw::allocator::size_report::MeasureBlock |
( |
uint32_t |
mask | ) |
|
Exercises a block implementation as part of a size report.
- Template Parameters
-
| BlockType | The type of block to create and exercise. |
- Parameters
-
| [in] | mask | A bitmap that can be passed to PW_BLOAT_COND and PW_BLOAT_EXPR. See those macros for details. |
◆ MeasureBlockAllocator()
Exercises a block allocator as part of a size report.
- Parameters
-
| [in] | allocator | The block allocator to exercise. |
| [in] | mask | A bitmap that can be passed to PW_BLOAT_COND and PW_BLOAT_EXPR. See those macros for details. |
◆ MeasureBucket()
template<typename BucketType >
| int pw::allocator::size_report::MeasureBucket |
( |
BucketType & |
bucket, |
|
|
uint32_t |
mask |
|
) |
| |
Exercises a bucket as part of a size report.
- Template Parameters
-
| BucketType | The type of bucket to create and exercise. |
- Parameters
-
| [in] | mask | A bitmap that can be passed to PW_BLOAT_COND and PW_BLOAT_EXPR. See those macros for details. |
◆ SetBaseline()
| int pw::allocator::size_report::SetBaseline |
( |
uint32_t |
mask | ) |
|
Measures the size of common functions and data without any allocators.
- Parameters
-
| [in] | mask | A bitmap that can be passed to PW_BLOAT_COND and PW_BLOAT_EXPR. See those macros for details. |