All Projects → MicroPyramid → django-web-profiler

MicroPyramid / django-web-profiler

Licence: MIT License
Django package to log request values such as device, IP address, user CPU time, system CPU time, No of queries, SQL time, no of cache calls, missing, setting data cache calls for a particular URL with a basic UI.

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to django-web-profiler

Pprof
pprof is a tool for visualization and analysis of profiling data
Stars: ✭ 4,990 (+6465.79%)
Mutual labels:  profiler, performance-analysis
Php Spx
A simple & straight-to-the-point PHP profiling extension with its built-in web UI
Stars: ✭ 972 (+1178.95%)
Mutual labels:  profiler, performance-analysis
Goappmonitor
Golang application performance data monitoring.
Stars: ✭ 478 (+528.95%)
Mutual labels:  profiler, performance-analysis
Stackimpact Java
StackImpact Java Profiler - Production-Grade Performance Profiler: CPU, locks, runtime metrics, and more
Stars: ✭ 7 (-90.79%)
Mutual labels:  profiler, performance-analysis
Hotspot
The Linux perf GUI for performance analysis.
Stars: ✭ 2,415 (+3077.63%)
Mutual labels:  profiler, performance-analysis
Scalene
Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python
Stars: ✭ 4,819 (+6240.79%)
Mutual labels:  profiler, performance-analysis
Py Spy
Sampling profiler for Python programs
Stars: ✭ 7,709 (+10043.42%)
Mutual labels:  profiler, performance-analysis
Stackimpact Go
DEPRECATED StackImpact Go Profiler - Production-Grade Performance Profiler: CPU, memory allocations, blocking calls, errors, metrics, and more
Stars: ✭ 276 (+263.16%)
Mutual labels:  profiler, performance-analysis
Vcprofiler
An accurate and simple tool uses KVO to measure the time cost of every view controller.
Stars: ✭ 61 (-19.74%)
Mutual labels:  profiler, performance-analysis
Profimp
Python import profiler
Stars: ✭ 52 (-31.58%)
Mutual labels:  profiler, performance-analysis
Stackimpact Nodejs
DEPRECATED StackImpact Node.js Profiler - Production-Grade Performance Profiler: CPU, memory allocations, async calls, errors, metrics, and more
Stars: ✭ 46 (-39.47%)
Mutual labels:  profiler, performance-analysis
Myperf4j
High performance Java APM. Powered by ASM. Try it. Test it. If you feel its better, use it.
Stars: ✭ 2,281 (+2901.32%)
Mutual labels:  profiler, performance-analysis
Tracy
C++ frame profiler
Stars: ✭ 3,115 (+3998.68%)
Mutual labels:  profiler, performance-analysis
Coz
Coz: Causal Profiling
Stars: ✭ 2,719 (+3477.63%)
Mutual labels:  profiler, performance-analysis
FlameViewer
Tool for flamegraphs visualization
Stars: ✭ 76 (+0%)
Mutual labels:  profiler
serializer-benchmark
A PHP benchmark application to compare PHP serializer libraries
Stars: ✭ 14 (-81.58%)
Mutual labels:  performance-analysis
KeepSitecoreSimple
Advanced diagnostics techniques home
Stars: ✭ 41 (-46.05%)
Mutual labels:  performance-analysis
profiling
Non-discriminatory profiling of Ruby code leveraging the ruby-prof gem
Stars: ✭ 12 (-84.21%)
Mutual labels:  profiler
findlargedir
find all "blackhole" directories with a huge amount of filesystem entries in a flat structure
Stars: ✭ 15 (-80.26%)
Mutual labels:  performance-analysis
customizable-django-profiler
Customizable cProfileMiddleware for Django
Stars: ✭ 28 (-63.16%)
Mutual labels:  profiler

django-web-profiler's documentation:

Documentation Status https://travis-ci.org/MicroPyramid/django-web-profiler.svg?branch=master Latest Release https://coveralls.io/repos/github/MicroPyramid/django-web-profiler/badge.svg?branch=master Code Health Latest Release

Introduction:

django-web-profiler is a django profiling tool which logs, stores debug toolbar statistics and also a set of URL's statistics using a management command. It logs request values such as device, ip address, user cpu time, system cpu time, No of queries, sql time, no of cache calls, missing, setting data cache calls for a particular url.

It provides a basic UI, which will differentiate development url statistics, production level statistics which generates using a management command.

Source Code is available in Micropyramid Repository(https://github.com/MicroPyramid/django-web-profiler).

Modules used:

  • Python >= 2.6 (or Python 3.4)
  • Django = 1.11.15
  • Django Compressor = 2.1.1
  • Django Debug Toolbar = 1.8
  • requests = 2.20.0

Installation Procedure

  1. Install django-web-profiler using the following command:

    pip install django-web-profiler
    
            (or)
    
    git clone git://github.com/micropyramid/django-web-profiler.git
    
    cd django-web-profiler
    
    python setup.py install
    
  2. Add app name in settings.py:

    INSTALLED_APPS = [
       '..................',
       'compressor',
       'debug_toolbar',
       'django_web_profiler',
       '..................'
    ]
    
  3. Add 'django_web_profiler.middleware.DebugLoggingMiddleware' to your project middlewares:

    MIDDLEWARE = [
       '.....................................................',
       'django_web_profiler.middleware.DebugLoggingMiddleware',
       '.....................................................',
    ]
    
    Disable 'debug_toolbar.middleware.DebugToolbarMiddleware' if you've already using it.
    
  4. Make sure that 'debug-toolbar' has enabled for your application. After installing debug toolbar, add the following details to settings.py:

    INTERNAL_IPS = ('127.0.0.1',)
    
  5. After installing/cloning, add the following details in settings file about urls, logger names:

    URLS = ['http://stage.testsite.com/', 'http://stage.testsite.com/testing/']
    
  6. Add the following logger to your existing loggers and create a folder called 'logs' where all profiler log files are stored:

        'request-logging': {
            'level': 'DEBUG',
            'handlers': ['console', 'file_log'],
            'propagate': False,
        },
    
    Here file_log is a handler which contains a path where log files are stored.
    

Sample Application

  1. Install application requirements using the following command:

    pip install -r requirements.txt
    
  2. Load the application load using the following command:

    python sandbox/manage.py loaddata sandbox/fixtures/users.json
    
  3. Using the following command, we can generate url statistics in production environment i.e debug=False:

    python sandbox/manage.py logging_urls
    

We are always looking to help you customize the whole or part of the code as you like.

Visit our Django Development page Here

We welcome your feedback and support, raise github ticket if you want to report a bug. Need new features? Contact us here

or

mailto:: "[email protected]"

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].