All Projects → yegor256 → total

yegor256 / total

Licence: other
Ruby Gem to get total memory size in the system

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to total

rs-process-memory
A rust library that allows you to read/write into the memory of other processes
Stars: ✭ 63 (+320%)
Mutual labels:  memory, memory-management
gctoolkit
Tool for parsing GC logs
Stars: ✭ 1,127 (+7413.33%)
Mutual labels:  memory, memory-management
Mesh
A memory allocator that automatically reduces the memory footprint of C/C++ applications.
Stars: ✭ 1,243 (+8186.67%)
Mutual labels:  memory, memory-management
redis-key-dashboard
This tool allows you to do a small analysis of the amount of keys and memory you use in Redis. It allows you to see overlooked keys and notice overuse.
Stars: ✭ 42 (+180%)
Mutual labels:  memory, memory-management
o1heap
Constant-complexity deterministic memory allocator (heap) for hard real-time high-integrity embedded systems
Stars: ✭ 119 (+693.33%)
Mutual labels:  memory, memory-management
Memreduct
Lightweight real-time memory management application to monitor and clean system memory on your computer.
Stars: ✭ 1,101 (+7240%)
Mutual labels:  memory, memory-management
csharp-workshop
NDC London 2019, Workshop: Become a better C# programmer: more Value, more Expressions, no Waiting
Stars: ✭ 21 (+40%)
Mutual labels:  memory, memory-management
slimarray
SlimArray compresses uint32 into several bits, by using a polynomial to describe overall trend of an array.
Stars: ✭ 39 (+160%)
Mutual labels:  memory
grape-jwt-authentication
A reusable Grape JWT authentication concern
Stars: ✭ 31 (+106.67%)
Mutual labels:  ruby-gem
libmem
Advanced Game Hacking Library for C/C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External)
Stars: ✭ 336 (+2140%)
Mutual labels:  memory
Wortuhr ESP8266
Wortuhr mit ESP8266 WeMos D1 mini und NeoPixel WS2812B LEDs mit mp3 Sounds, Animationen, Transitions, Events und Spiele
Stars: ✭ 33 (+120%)
Mutual labels:  memory
sequel-seed
A Sequel extension to make seeds/fixtures manageable like migrations
Stars: ✭ 25 (+66.67%)
Mutual labels:  ruby-gem
superglue
A productive library for Classic Rails, React and Redux
Stars: ✭ 106 (+606.67%)
Mutual labels:  ruby-gem
pixitar
🧝 Pixitar is an avatar generation library written in Ruby.
Stars: ✭ 20 (+33.33%)
Mutual labels:  ruby-gem
hardware
Get CPU, Memory and Network informations of the running OS and its processes
Stars: ✭ 70 (+366.67%)
Mutual labels:  memory
ruby-memory-issues
🐲 Ruby Memory Issues and Where to Find Them
Stars: ✭ 22 (+46.67%)
Mutual labels:  memory
nodejs
Node.js in-process collectors for Instana
Stars: ✭ 66 (+340%)
Mutual labels:  memory
NALib
General purpose C sourcecode collection
Stars: ✭ 16 (+6.67%)
Mutual labels:  memory-management
dualnback
In n-back task you need to remember n previous spatial or auditory stimuli. N-back is a memory test where n refers on how many previous stimuli must be remembered. Dual means that verbal auditory stimulus and spatial visual stimulus are presented at the same time and must be remembered separately.
Stars: ✭ 22 (+46.67%)
Mutual labels:  memory
mindav
A self-hosted file backup server which bridges WebDAV protocol with @minio written in @totoval. Webdav ❤️ Minio
Stars: ✭ 64 (+326.67%)
Mutual labels:  memory

Managed by Zerocracy EO principles respected here DevOps By Rultor.com We recommend RubyMine

Build Status Gem Version Maintainability Yard Docs

License Test Coverage Hits-of-Code

Total is a Ruby gem to detect the total amount of memory in the system.

First, install it:

$ gem install total

Then, use it like this:

require 'total'
puts Total::Mem.new.bytes

The following platforms are supported:

If the platform is not recognized or is not supported, Total::CantDetect exception will be raised. You should catch it and proceed accordingly, for example:

def total_mb
  Total::Mem.new.bytes / (1024 * 1024)
rescue Total::CantDetect
  512
end

This code will return the actual memory size in Mb, if it can be detected, or 512 otherwise.

That's it.

How to contribute

Read these guidelines. Make sure you build is green before you contribute your pull request. You will need to have Ruby 2.3+ and Bundler installed. Then:

$ bundle update
$ bundle exec rake

If it's clean and you don't see any error messages, submit your pull request.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].