Giter Club home page Giter Club logo

fluent-plugin-werkzeug-profiler's Introduction

Build Status Coverage Status Code Climate Dependency Status

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.

fluent-plugin-werkzeug-profiler's People

Contributors

zoncoen avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.