Skip to main content

ROS2-friendly function performance profiler

Project description

Pyros Performance

A high-performance Python library for benchmarking and profiling your code. it can be used for both ros2 functions and non-ros2 functions. project is part of the pyros library.

Installation

pip install pyros-performance

Quick Start

from pyros_performance import profiler

@profiler(log_in_console=True, log_in_ros=False)
def sum_numbers(*args, **kwargs):
    total = 0

    for value in args:
        total += value

    for value in kwargs.values():
        total += value

    return total

Example Output

Function Name: sum_numbers
Time Taken: 0.000008 sec
Current Memory: 0.00 MB
Peak Memory: 0.00 MB
CPU Usage: 0.00%

Features

  • Easy benchmarking - Simple API for measuring execution time
  • Memory profiling - Track memory usage during execution
  • Performance reports - Generate detailed performance metrics
  • Low overhead - Minimal impact on your code performance

Documentation

For detailed documentation, visit GitHub.

Requirements

  • Python 3.8+

License

MIT

Contributing

Contributions welcome! Please submit pull requests or issues on GitHub.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pyros_performance-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pyros_performance-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyros_performance-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2b65f78cc08e9352394092efea5213492088d1742afec60d7b36fe594325f04
MD5 1462bf4796efe5de4c2bbd368faab676
BLAKE2b-256 a004dbdac4ceb0384557a01382961df4693e8dc9775df800a0ec427c12823978

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