Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

vstinner/tracemallocqt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qt GUI for tracemalloc.

Author: Victor Stinner <victor.stinner@gmail.com>

Usage

Run your application, enable tracemalloc and dump snapshots with:

import pickle, tracemalloc
tracemalloc.start()
# ... run your application ...
snapshot = tracemalloc.take_snapshot()
with open(filename, "wb") as fp:
    pickle.dump(snapshot, fp, 2)
snapshot = None

Then open a snapshot with:

python tracemallocqt.py snapshot.pickle

Compare two snapshots with:

python tracemallocqt.py snapshot1.pickle snapshot2.pickle

You can specify any number of snapshots on the command line.

Dependencies

pytracemalloc works on Python 2 and Python 3. It supports PySide and PyQt4 (use your preferred Qt binding). If PySide and PyQt4 are available, PySide is used.

About

Qt GUI for tracemalloc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages