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

Accumulating events instead of logging #6

Open
harendra-kumar opened this issue May 16, 2023 · 1 comment
Open

Accumulating events instead of logging #6

harendra-kumar opened this issue May 16, 2023 · 1 comment

Comments

@harendra-kumar
Copy link
Member

  • Logging events too often for a tiny time window may add much overhead.
  • We can instead accumulate the events in memory using the profiling infra
  • Control the event logging via SCC annotations - log periodically instead of every time

We can use event logging for micro-benchmarking as well.

@harendra-kumar
Copy link
Member Author

For micro-benchmarking, we can have the user window message logged only after n iterations and log the number of iterations as well. Usually in a non-threaded program thread won't switch often therefore the thread eventlog won't be much.

@harendra-kumar harendra-kumar transferred this issue from composewell/streamly-metrics Jun 19, 2023
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

No branches or pull requests

1 participant