GithubHelp home page GithubHelp logo

isabella232 / nginx-dtrace Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openresty/nginx-dtrace

0.0 0.0 0.0 1.91 MB

An nginx fork that adds dtrace USDT probes

License: BSD 2-Clause "Simplified" License

Shell 0.51% Ruby 8.68% C++ 0.54% Perl 0.16% C 89.92% Objective-C 0.12% D 0.05% Assembly 0.03%

nginx-dtrace's Introduction

This is an Nginx fork that adds dtrace USDT probes.

Installation:

    ./configure --with-dtrace-probes \
        --with-dtrace=/usr/sbin/dtrace \
        ...
    make
    make install

Usage on Linux (with systemtap):

    # make the stap-nginx script visiable in your PATH
    export PATH=/usr/local/nginx/sbin:$PATH

    # list all the static probes available in your nginx
    stap-nginx -L 'process("nginx").mark("*")'

    # run the test.stp file
    stap-nginx test.stp

Sample test.stp file:

    probe begin
    {
        print("Tracing.  Hit CTRL-C to stop.\n")
    }

    probe process("nginx").mark("http-subrequest-start")
    {
        printf("uri: %s?%s\n", ngx_http_req_uri($arg1),
            ngx_http_req_args($arg1))
    }

For now, only tested on Solaris 11 Express and Fedora Linux 17.

The original Nginx documentation is available at http://nginx.org

nginx-dtrace's People

Contributors

agentzh 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.