Code Monkey home page Code Monkey logo

tornado_tracing's Introduction

Tornado Tracing

This library instruments HTTP calls in a Tornado application and provides visualizations to find where your app is spending its time and identify opportunities for parallelism. It uses the Appstats module from the Google App Engine SDK.

Tornado Tracing is licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).

Installation

You will need:

Usage

In most cases, you can simply use/subclass RecordingRequestHandler and AsyncHTTPClient from tornado_tracing.recording instead of the corresponding Tornado classes. These classes do nothing special unless the --enable_appstats flag is passed.

At startup, you must call tornado_tracing.config.setup_memcache() to tell the system where your memcache server is running. You can also use tornado_tracing.config.set_options() to set certain other options, such as KEY_PREFIX if multiple applications are sharing a memcache server and you want to keep the data separate.

Finally, add tornado_tracing.config.get_urlspec() to your Application's list of handlers. This is where the trace output will be visible. Note that the UI does not have to be served from the same process where the data is generated, as long as they're all using the same memcache.

Screenshot

screenshot

tornado_tracing's People

Stargazers

 avatar

Watchers

 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.