Skip to main content

django-web-profiler’s documentation:

Documentation Status https://travis-ci.org/MicroPyramid/django-web-profiler.svg?branch=master Downloads 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.2

  • Django Compressor = 2.1.1

  • Django Debug Toolbar = 1.8

  • requests = 2.17.3

  • JQuery >= 1.7

Installation Procedure

  1. Install django-web-packer 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:: “hello@micropyramid.com

Release files for django-web-profiler 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-web-profiler 0.1.4
File Size Uploaded
django-web-profiler-0.1.4.tar.gz 77.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-web-profiler 0.1.4
File Interpreter ABI Platform
django_web_profiler-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 165.3 kB

Release files / django-web-profiler-0.1.4.tar.gz

Download URL django-web-profiler-0.1.4.tar.gz
Size 77.5 kB
Tags Source
SHA-256 checksum
How to use checksums
13a706297385590f78721dd592b644d5677ba4f8f708c55a9ca1b095af67a885
BLAKE2b-256 checksum
How to use checksums
6af8ee60d28f95b1e568363812dd8a9eee9edc96792e95f88f65d26e0b9d2e4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_web_profiler-0.1.4-py3-none-any.whl

Download URL django_web_profiler-0.1.4-py3-none-any.whl
Size 87.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fb26d4d0d95f133fde3a1d5fb1926dfb73827d1db313bf7052ef55cb2fbe22f
BLAKE2b-256 checksum
How to use checksums
cebbd865150bd90cf19a89b84eba586e8680897a32d348f6c040ce0db093f133
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

1 release file

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page