Skip to main content

Py_Monitor_JetsonTX2

MIT license PRs Welcome

About

Optimisation has become a need of the hour. Gpu usage, CPU usage, GPU temperature, CPU temperature, Power comsumption are a great indicator of how a process can be optimised further. This project allows you to run a process analysing algorithm in a parallel thread while you are running your block of code in python that needs to be monitored. A graph will be generated once the process completes and will be saved in the same folder as your python script.

For source code

This the my Github repo. Contact me for support and PRs are welcome.

Usage

  1. Pip install the package.
$ pip3 install Py-Monitor-JetsonTX2
  • NOTE : Please note that the package is specific to NVIDIA JETSON TX2.

The use of package will result in an image and a txt file in the same directory as your python code.

Syntax

  1. Import the library.
>> import Py_Monitor_JetsonTX2 as pm
  1. Create an object of the class, pm.Analyser(). Say, analyser.
>> analyser = pm.Analyser()
  1. Now place a start trigger at that point in your code where you want to start recording the resources being used
>> analyser.start_recording()
  • NOTE : This initiates another thread parallel to the script that is being executed.
  1. Once the process you want to monitor is over place another trigger telling the package to stop monitoring resource consumption.
>> analyser.stop_recording()
  1. Once the code completes execution you can return to your directory where the python code resides to find a PNG that shows the GPU usage, CPU usage, GPU temperature, CPU temperature and Power consumption stats of the code that lies within start_recording() and stop_recording()

LICENSE

MIT

Metadata

Release files for Py-Monitor-JetsonTX2 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Py-Monitor-JetsonTX2 0.1.1
File Size Uploaded
Py_Monitor_JetsonTX2-0.1.1.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Py-Monitor-JetsonTX2 0.1.1
File Interpreter ABI Platform
Py_Monitor_JetsonTX2-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / Py_Monitor_JetsonTX2-0.1.1.tar.gz

Download URL Py_Monitor_JetsonTX2-0.1.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
16b7a5bc20799ea89f50c9079d786866364032caf7e283eaf3fb8ff21dd30102
BLAKE2b-256 checksum
How to use checksums
168be23c4971d0aabb435046d8febf57a2ee32139a6788decd2b49dc75686d42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Release files / Py_Monitor_JetsonTX2-0.1.1-py3-none-any.whl

Download URL Py_Monitor_JetsonTX2-0.1.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42884f4c7978a2e2a5cf8d31b4831057863c79d09bed3a0f119d8af4c602f147
BLAKE2b-256 checksum
How to use checksums
9e2666c645b35d7e9ca08f1024743faef6136892191222902bbb14549cb68b81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page