Skip to main content

ECS python implementation

Project description

encosy

Docs

Installation

Using pip

Releases of encosy can be installed using pip::

$ pip install encosy

Source releases and any binaries can be downloaded from the PyPI link.

https://pypi.org/project/encosy/

Using git and poetry

For poetry guide follow this link::

git clone https://github.com/Cruxyu/encosy.git
poetry install

Profiling

CPU

To create a profile.prof

from file_with_app import app
import cProfile
import pstats


def main():
    with cProfile.Profile() as pr:
        app()
    stats = pstats.Stats(pr)
    stats.sort_stats(pstats.SortKey.TIME)
    # stats.print_stats()
    stats.dump_stats("app.prof")


if __name__ == "__main__":
    main()

To see viz of a profile

poetry run python -m snakeviz app.prof

Memory

To test memory run

mprof run app.py  

To see the results run

mprof plot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

encosy-3.0.0.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

encosy-3.0.0-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page