Skip to content

GrafLearnt/pstats_extender

Repository files navigation

Upload Python Package PyPI version Python Versions pstats-extender

Abstract

Designed to save pstats log to folder...

Install

    pip3 install git+https://github.com/GrafLearnt/pstats_extender.git

Usage

import pstats_extender


@pstats_extender.profile()
def some_function():
    ...

or

import pstats_extender


with pstats_extender.profile(
    sortby=pstats_extenter.SortKey.CUMULATIVE, directory="../pstats"
):
    # your code here

or

import pstats_extender


with pstats_extender.profile():
    # your code here

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.