arm4module
Table of Contents
arm4module provides Python language bindings for ARM 4.
News
04/22/2009: Now part of Fedora 10 and later. You can install this using the python-arm4 package.
12/23/2007: Version 0.1 released.
Documentation
Type 'pydoc arm4' for more information, or see the latest version online
How to use it
Here's a simple example:
import arm4
# Register
app_id = arm4.register_application ("Python test")
tran_id = arm4.register_transaction (app_id, "Python hello world")
# Start our application and transaction measurements
app_handle = arm4.start_application (app_id, "Example")
tran_handle = arm4.start_transaction (app_handle, tran_id)
# Do our work
print 'Hello, world!'
# Stop our measurements
arm4.stop_transaction (tran_handle) # Default status is arm4.ARM_STATUS_GOOD
arm4.stop_application (app_handle)
# Finish up
arm4.destroy_application (app_id)
More examples are available here
Availability
All downloads are now available in the SourceForge downloads area. You can also install this on your Fedora Linux system using the python-arm4 package (Fedora 10 and later).
Build Directions
First build the module
python setup.py build
Then as root, install
python setup.py install

