Socket
Book a DemoInstallSign in
Socket

rack-stackprof

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rack-stackprof

0.2.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

Rack::Stackprof

Periodically dump StackProf profile result to tmp with easy-to-understand filenames

Installation

Add this line to your application's Gemfile:

gem 'rack-stackprof'

And then execute:

$ bundle

Usage

if ENV['STACKPROF_ENABLE'] == 'true'
  Rails.application.middleware.use(
    Rack::Stackprof,
    profile_interval_seconds: 1,
    sampling_interval_microseconds: 1000,
    result_directory: 'tmp',
  )
end

After starting application with environment variable STACKPROF_ENABLE=true, files whose name is like following ones will be periodically (once per second as profile_interval_seconds: 1) dumped to tmp.

stackprof-20171004_175816-41860-GET_v1_users-0308ms.dump
stackprof-20171004_175924-41860-GET_v1_accounts-0248ms.dump
stackprof-20171004_175955-41860-GET_v1_comments-1029ms.dump
...

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 16 Sep 2020

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.