Measure performance
Project description
Code level software performance measuring. Measuring is done by defining action start and end point in code.
Import
from Perfole.Perfole import PERFORMANCE_TEST
Set start/end points
PERFORMANCE_TEST.StartAction("actionName", ...)
...
PERFORMANCE_TEST.EndAction("actionName", ...)
Start/stop measurement
PERFORMANCE_TEST.Start(True)
...
PERFORMANCE_TEST.Stop()
Expected methods order
PERFORMANCE_TEST.Start() // before action points
PERFORMANCE_TEST.StartAction() // anywhere beetwen start/stop measurement
...
PERFORMANCE_TEST.EndAction() // anywhere beetwen start/stop measurement
PERFORMANCE_TEST.Stop() // after all action points
Results
Stop() method will return list of caught actions. For cloud reporting functionality visit https://perfole.com
Multithreaded code
In multithreaded code, when start and stop events are called in different threads, uniqueIdentifier parameter must be given. E.g:
PERFORMANCE_TEST.StartAction(name="actionName", uniqueIdentifier= "myIdentifier")
...
PERFORMANCE_TEST.EndAction(name="actionName", uniqueIdentifier= "myIdentifier")
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
Perfole-0.0.7.tar.gz
(5.9 kB
view details)
File details
Details for the file Perfole-0.0.7.tar.gz.
File metadata
- Download URL: Perfole-0.0.7.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a4f38bc99d21670d63443ed89108e5667a309d6b225ff2bfe8a3a1bbfd39186
|
|
| MD5 |
741c2d67e6c56d9f895839ab68ebe72b
|
|
| BLAKE2b-256 |
4eccd625955bed42d99ba1dfd08b8318d3ae49a247e893c4eb15609c3dbb7819
|