Socket
Book a DemoInstallSign in
Socket

fluent-plugin-werkzeug-profiler

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluent-plugin-werkzeug-profiler

0.0.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

fluent-plugin-werkzeug-profiler

Component

WerkzeugProfilerInput

Fluent input plugin for Werkzeug WSGI application profiler statistics.

For example, Werkzeug profiler output following log.

----------------------------------------
PATH: '/'
         15724 function calls (14741 primitive calls) in 0.418 seconds

   Ordered by: internal time, call count
   List reduced from 490 to 30 due to restriction <30>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        2    0.226    0.113    0.226    0.113 {method 'query' of '_mysql.connection' objects}
        1    0.000    0.000    0.026    0.026 build/bdist.linux-x86_64/egg/MySQLdb/__init__.py:78(Connect)
    99/31    0.000    0.000    0.000    0.000 /usr/lib/python2.7/sre_parse.py:141(getwidth)

----------------------------------------

Results are as follows.

{ "uri"=>"/", "tot_ncalls"=>"2", "prim_ncalls"=>"2", "tottime"=>"0.226", 
  "tot_percall"=>"0.113", "cumtime"=>"0.226", "cum_percall"=>"0.113", 
  "filename:lineno(function)"=>"{method 'query' of '_mysql.connection' objects}" }, 
{ "uri"=>"/", "tot_ncalls"=>"1", "prim_ncalls"=>"1", "tottime"=>"0.000", 
  "tot_percall"=>"0.000", "cumtime"=>"0.026", "cum_percall"=>"0.026", 
  "filename:lineno(function)"=>"build/bdist.linux- x86_64/egg/MySQLdb/__init__.py:78(Connect)" }, 
{ "uri"=>"/", "tot_ncalls"=>"99", "prim_ncalls"=>"31", "tottime"=>"0.000", 
"tot_percall"=>"0.000", "cumtime"=>"0.000", "cum_percall"=>"0.000", 
    ["filename:lineno(function)"=>"/usr/lib/python2.7/sre_parse.py:141(getwidth)" }

Installation

$ gem install fluent-plugin-werkzeug-profiler

Configuration

WerkzeugProfilerInput

<source>
  type werkzeug_profiler
  path path/to/werkzeug.log
  tag werkzeug.webserver
</source>

License

This software is released under the MIT License, see LICENSE.txt.

FAQs

Package last updated on 08 Nov 2013

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.