Socket
Book a DemoInstallSign in
Socket

stats

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stats

0.2.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Stats

Requires the redis gem.

Easily keep track of vital stats using Redis.

There are currently three types of statistics that Stats captures:

  • Simple

Simple stats are meant to be updated periodically. Only the latest value is kept.

Stats.set("load", System.load)

2. Counts

Counts can be incremented and decremented. Only the latest value is kept.

Stats.incr("downloads")

3. Timings

Timings are used to keep track of the time it takes to run a block. All values are kept so that they can be graphed/analyzed.

Stats.time("archive") { file.archive }

Installation

$ gem install stats

Author

Matt Duncan matt@mattduncan.org

FAQs

Package last updated on 09 May 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.