Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print allocation statistics in pools and arenas #671

Open
gavv opened this issue Jan 4, 2024 · 4 comments
Open

Print allocation statistics in pools and arenas #671

gavv opened this issue Jan 4, 2024 · 4 comments
Labels
algorithms Algorithms and data structures easy hacks The solution is expected to be straightforward even if you are new to the project enhancement help wanted An important and awaited task but we have no human resources for it yet

Comments

@gavv
Copy link
Member

gavv commented Jan 4, 2024

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 gavv added algorithms Algorithms and data structures easy hacks The solution is expected to be straightforward even if you are new to the project enhancement help wanted An important and awaited task but we have no human resources for it yet labels Jan 4, 2024
@Napetrou

This comment was marked as outdated.

@gavv

This comment was marked as outdated.

@gavv

This comment was marked as outdated.

@gavv
Copy link
Member Author

gavv commented Jun 20, 2024

Unassigning, so that someone could pick this up.

@gavv gavv added this to Roc Toolkit Jul 6, 2024
@gavv gavv moved this to Help wanted in Roc Toolkit Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
algorithms Algorithms and data structures easy hacks The solution is expected to be straightforward even if you are new to the project enhancement help wanted An important and awaited task but we have no human resources for it yet
Projects
Status: Help wanted
Development

No branches or pull requests

2 participants