roc-toolkit icon indicating copy to clipboard operation
roc-toolkit copied to clipboard

Print allocation statistics in pools and arenas

Open gavv opened this issue 1 year ago • 4 comments

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:

  • total currently allocated bytes
  • total currently allocated objects
  • average bytes per second during period
  • average objects per second during period

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.

gavv avatar Jan 04 '24 19:01 gavv

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.

Napetrou avatar Jan 05 '24 16:01 Napetrou

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 avatar Jan 06 '24 09:01 gavv

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

gavv avatar May 14 '24 19:05 gavv

Unassigning, so that someone could pick this up.

gavv avatar Jun 20 '24 13:06 gavv