roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.02k stars 203 forks source link

Print allocation statistics in pools and arenas #671

Open gavv opened 6 months ago

gavv commented 6 months ago

core::SlabPool and core::HeapArena are two classes through which roc performs most allocations.

It would be convenient to see simple allocation statistics from them in logs:

We can compute and print this statistics, say, with period of one minute.

There is a class core::RateLimiter that allows to check if next period expired. We can do this check e.g. after every allocation.

Napetrou commented 6 months ago

Hello, i would love to help, i'm complete beginner in contributing to open source projects but i am familiar with c++, i think i can help, but if i come across any problems i might need some guidance, so may i contact if i have any issues? Thanks in advance and i apologize if this isn't the right way of communicating here.

gavv commented 5 months ago

You're welcome, thanks. Please take a look at this page: https://roc-streaming.org/toolkit/docs/development/contribution_guidelines.html and feel free to ask questions here or in matrix chats.

gavv commented 1 month ago

@Napetrou Hi, do you still plan to work on it?

gavv commented 1 week ago

Unassigning, so that someone could pick this up.