Collect performance data for PC applications
Project description
# Introduction The tool can collect the CPU and memory of a process in the PC system and save to the local, support Mac, Windows.
#The package name process_name = packagename
#In seconds collect_time = seconds
#for windows
from performance_data_collection.WindowsCollect import Win
process_name = 'package_name'
collect_time = 10 # In seconds
win = Win(process_name, collect_time)
win.collect()
#for mac
from performance_data_collection.MacCollect import Mac
process_name = 'packagename'
collect_time = 10 # In seconds
mac = Mac(process_name, collect_time)
mac.collect()
#result
CPU:9.06%
memory:195.39MB
********************
CPU:8.80%
memory:191.50MB
********************
CPU:9.01%
memory:191.50MB
********************
CPU:9.28%
memory:191.51MB
********************
CPU:9.75%
memory:191.53MB
********************
...
[联系作者](2025331266@qq.com,747469442@qq.com)
git@gitee.com:zhou002/performance.git
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for performance_data_collection-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a6dc462622196c9da814c880099784d6bd050688f9764789f46f6f781154908 |
|
MD5 | bfc07bd5a9381319010ebe45ecc9b69a |
|
BLAKE2b-256 | 2127e495503e70d8b204ee5dbaf216a038b8bfd3c7e43588948f6b07d185a504 |
Close
Hashes for performance_data_collection-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21a41908b50ac41aaefe9ac31c76a58fabb4d4ab264ba459c19d03de6b5e525b |
|
MD5 | f9536bb2bb41b0bd1d7245e760823972 |
|
BLAKE2b-256 | 417c7e888e3130ab33e82cb463d192df7761fd12f663b487a31a504abc44abe8 |