Skip to content

torkve/dowser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a slightly modified version of dowser from https://e-mats.org/2013/01/debugging-pythons-memory-usage-with-dowser/

Changes:

  • Cherrypy integration replaced with aiohttp
  • Python 2 is not supported anymore. Python 3 only (you should expect it with aiohttp)
  • Added support for pympler to find heavy objects and measure object sizes
  • Added support for tracemalloc to find memory allocations
  • Added option to search only for types having at least N instances
  • Added option to sort object types by instance count or total size
  • Fixed displaying object info when its attributes cannot be represented

Usage

To integrate dowser to your aiohttp server, use:

import dowser
dowser.setup(existing_app)

This will bind sub-path /dowser/ to your existing aiohttp app. Alternatively one can specify custom sub-path:

dowser.setup(existing_app, bind_path='/.secret-dowser/')

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 77.9%
  • HTML 19.7%
  • CSS 2.4%