curses
MemoryProfiler
curses | MemoryProfiler | |
---|---|---|
4 | 6 | |
285 | 1,659 | |
0.0% | - | |
2.8 | 3.4 | |
8 days ago | 11 months ago | |
C | Ruby | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
curses
-
CLI tools at Aha!
As we make updates to our ops and similar CLI utilities, we often improve the user experience by taking advantage of various Ruby gems. With little effort compared to low-level coding with curses, our command-line utilities that used to be cryptic and confusing are now interactive, easy to use, and — dare I say — elegant.
-
Ncurses in Ruby style?
https://github.com/ruby/curses is the official ncurses gem for ruby
-
Ok y’all. How can we get this kind of real-time memory profiling in Ruby? Does it already exist? Is anyone working on this?
As a follow up, if anyone is interested in working on something like this, Ruby has an official curses gem supporting the curses family of libraries.
-
Parallel progress output from different threads
First, a word of caution. "Updating" a terminal or console is possible, but it is rife with gotchas and inconsistencies. The go to library/application for this type of interfaces is Curses. There are Ruby bindings, but this injects a system dependency that may or may not be available on a given platform. Also, Curses is way overkill if all you're doing is output.
MemoryProfiler
-
Suggestions for how to reduce memory usage
Wire the memory_profiler into an around_action to identify your bloaty actions.
-
A Deep Dive into Memory Leaks in Ruby
The memory_profiler gem offers a very simple API and a detailed (albeit a little overwhelming) allocated and retained memory report — that includes the classes of objects that are allocated, their size, and where they were allocated. It's straightforward to add to our leaky program.
-
Ok y’all. How can we get this kind of real-time memory profiling in Ruby? Does it already exist? Is anyone working on this?
memory_profiler
-
Advanced ActiveRecord Querying - With Benchmarks!
We don't need to rely upon a priori reasoning only, we can use memory_profiles and benchmark_ips to compare the memory consumption and iterations per second of each solution.
-
Is there a more efficient way to do these permutation calculations?
Either https://github.com/tmm1/stackprof for cpu or https://github.com/SamSaffron/memory_profiler for memory. In practice profiling and removing allocations also gives a large perf boost.
-
Reduce memory consumption with a custom ActiveRecord attribute
Our project has one endpoint which gets called quite often. So, I profiled it with memory profiler and saw a line pointing to hstore.rb.
What are some alternatives?
cpaint - https://briancallahan.net/blog/20220220.html
rack-mini-profiler - Profiler for your development and production Ruby rack apps.
posix - POSIX/C bindings generator for the Crystal programming language
bullet - help to kill N+1 queries and unused eager loading
PDCurses - A curses library for environments that don't fit the termcap/terminfo model.
Timeasure - Transparent method-level wrapper for profiling purposes in Ruby
newt - Mirror of https://pagure.io/newt.git
prosopite - :mag: Rails N+1 queries auto-detection with zero false positives / false negatives
vifm - Vifm is a file manager with curses interface, which provides Vim-like environment for managing objects within file systems, extended with some useful ideas from mutt.
perftools.rb - gperftools for ruby code
reline - The compatible library with the API of Ruby's stdlib 'readline'
memray - Memray is a memory profiler for Python