Skip to content

Conversation

@singalsu
Copy link
Collaborator

@singalsu singalsu commented Oct 1, 2025

No description provided.

@singalsu singalsu force-pushed the testbench_heap_track branch from 0f6415f to d94b5ca Compare October 1, 2025 17:08
This patch adds to memory dynamic allocation functions to sum
number of bytes allocated with each allocation function. The
change impacts only the library platform code that the
sof-testbech4 uses.

The sof-testbench4 run will print a summary of allocations sizes in
simulation end. The possible freed memory or reallocation with smaller
size is not taken into account. Also the SOF framework for test
pipelines will impact the number.

To know exactly the size of consumed heap, should subtract from
reported numbers the sizes of minimal component test run such as
template (plus the size of it's component data).

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This change avoids the heap usage of file component to impact
the reported heap consumption numbers. The allocations of
file component do not need to be done via the SOF framework.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu force-pushed the testbench_heap_track branch from d94b5ca to 5354ccc Compare October 1, 2025 17:11
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants