Skip to main content

check performance of the func using decorator

Project description

performance_logger

Table of Contents

Installation

Download using pip via pypi.

$ pip install 'performance-logger' --upgrade

(Mac/homebrew users may need to use pip3)

Quick start

from performance_logger.main import perf_logger

@perf_logger('datetime')
def test_fun():
    return "it will log the time performance of test_fun using datetime format"

@perf_logger('ns')
def test_fun2():
    return "it will log the time performance of test_fun2 using nano seconds"

Features

  • Simple decorator functions for performance checking of functions
  • You can use parameter to choose logged performace format

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

performance_logger-1.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

performance_logger-1.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file performance_logger-1.0.1.tar.gz.

File metadata

  • Download URL: performance_logger-1.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.2

File hashes

Hashes for performance_logger-1.0.1.tar.gz
Algorithm Hash digest
SHA256 998762dfce0f33909c89d30c96f081f7e8197f8e21f2ef5b158829739ceb7b0d
MD5 8ebc27fbfc77985760b1b81aa3f222fe
BLAKE2b-256 72fcb653e55cd0ae86677319afdb6c8ac0a76f186ceed07ccc77a0721dd3866b

See more details on using hashes here.

File details

Details for the file performance_logger-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: performance_logger-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.2

File hashes

Hashes for performance_logger-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99a80f9a3908fe4bc0682a8746e41255e36faefca652044c1ba3dbb72402d59c
MD5 5e5130a7ff0df7cbf344258b84c5742d
BLAKE2b-256 3c411d1642c83d59002468719bfb026c378f7f1c4256ae8d5d37bda82e1ab2d8

See more details on using hashes here.

Supported by

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