Skip to main content

Python tracing package for LDMud

Project description

Python Tracing package for LDMud

Python package to provide tracing information to LPC.

This package provides the following types:

  • profile_result

This package contains the following efuns:

  • profile_result profile_call(mixed& result, closure fun, mixed arg, ...)

Usage

Install from the python package index

The efun package can be downloaded from the python package index:

pip3 install --user ldmud-tracing

Build & install the package yourself

You can build the package yourself.

First clone the repository

git clone https://github.com/ldmud/python-tracing.git

Install the package

cd python-tracing
python3 setup.py install --user

Automatically load the modules at startup

Also install the LDMud Python efuns and use its startup.py as the Python startup script for LDMud. It will automatically detect the installed Python efuns and load them.

Manually load the modules at startup

Add the following lines to your startup script:

import ldmud_tracing.profile

ldmud_tracing.profile.register()

Profiling

The profile_call efun evaluates the given closure, any extra arguments will be passed to the closure. The result will be assigned to the first argument which needs to be passed as a reference.

The efun will return a profile_result object. This object provides evaluation cost and elapsed time information for each executed LPC code line. A complete list of functions is available in the efun documentation.

Have fun!

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

ldmud_tracing-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

ldmud_tracing-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file ldmud_tracing-0.0.1.tar.gz.

File metadata

  • Download URL: ldmud_tracing-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for ldmud_tracing-0.0.1.tar.gz
Algorithm Hash digest
SHA256 18bc37982ec53d19c2e069f2381e221b6ffba66a1082b91b36384b64df6eea9b
MD5 250777aeadac35f9dee3de812795081d
BLAKE2b-256 bac3e9d1e2a0eb1dff6b509fd5ad6c248b258b80ecbc359d93556837e6aa89bc

See more details on using hashes here.

File details

Details for the file ldmud_tracing-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ldmud_tracing-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad3b82ad481f3ce6fde6b129f9e4f2117123c7e7fab7156cbcb1702cfad8611b
MD5 89b7568c7915d20868ddc929a636bfbb
BLAKE2b-256 89d2edc2b2627d2222d5c8f0be8f0a89d480347d2313704e5e83f9b7a704a10b

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