Detects fibers that are stalling the event loop.
Migrating existing applications to the event loop can be tricky. One of the most common issues is when a fiber is blocking the event loop. This can happen when a fiber is waiting on a blocking operation, such as a database query, or a network request, that could not take advantage of the event loop. This can cause the event loop to stall, and prevent other fibers from running. This gem provides a way to detect these fibers, and help you identify the cause of the stall.
Please see the project documentation for more details.
-
Getting Started - This guide explains how to install the fiber profiler and choose a mode for diagnosing event-loop stalls.
-
Watchdog Mode - This guide explains how to sample ongoing fiber stalls with the watchdog profiler.
-
Capture Mode - This guide explains how to trace fiber execution and analyze call timings with the capture profiler.
Please see the project releases for all releases.
- Sign releases with the Socketry Ruby Gems certificate.
- Fixed compatibility with
Process.fork.
- Improved performance when not profiling (when sampling is enabled).
- Initial implementation extracted from
io-eventgem.
We welcome contributions to this project.
- Fork the repository.
- Create your feature branch (
git checkout -b my-new-feature). - Commit your changes (
git commit -am 'Add some feature.'). - Push to the branch (
git push origin my-new-feature). - Create a new pull request.
To run the test suite:
$ bundle exec susTo make a new release:
$ bundle exec bake gem:github:release:patch # or minor or majorSee bake-gem-github for setup and release instructions.
In order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.