Skip to main content

profile the grpc server

Project description

py-grpc-profile

Profile the grpc server.
Provide a grpc interceptor to profile each request in the cProfile module.

build

Installation

$ pip install -U py-grpc-profile

Example

Load the module and set the interceptors.

from concurrent import futures

import grpc
from py_grpc_profile.server.interceptor import ProfileInterceptor

# ...

server = grpc.server(
    futures.ThreadPoolExecutor(max_workers=10),
    interceptors=[ProfileInterceptor()],
)

# ...

The complete code is available in example. You can find more details there.

License

License

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

py-grpc-profile-0.1.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

py_grpc_profile-0.1.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file py-grpc-profile-0.1.3.tar.gz.

File metadata

  • Download URL: py-grpc-profile-0.1.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.8 Linux/5.4.0-1040-azure

File hashes

Hashes for py-grpc-profile-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bf4be67a049307bf1b21659442e38d573663e46ccd2c26a0f6d0e7ce4048d24c
MD5 cc7360f6e354df1215f008afc1acad26
BLAKE2b-256 07dd6d6156259317781dbbcbc832eb267b4e008ef50b73495267cadbbf23681a

See more details on using hashes here.

File details

Details for the file py_grpc_profile-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: py_grpc_profile-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.8 Linux/5.4.0-1040-azure

File hashes

Hashes for py_grpc_profile-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4e0118d9cb2ecbea2293441e807717d1c8c707027886082d331a26a9e222d3a2
MD5 7d799ef8bb8a1e45729157531daf0973
BLAKE2b-256 93eafe2bf93a3a25d97d7faea4c9fdc62640127ca457a7c9a6a15697a302819f

See more details on using hashes here.

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