Skip to main content

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


Download files

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

Source Distribution

performance_data_collection-1.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file performance_data_collection-1.0.2.tar.gz.

File metadata

  • Download URL: performance_data_collection-1.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.2

File hashes

Hashes for performance_data_collection-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7a6dc462622196c9da814c880099784d6bd050688f9764789f46f6f781154908
MD5 bfc07bd5a9381319010ebe45ecc9b69a
BLAKE2b-256 2127e495503e70d8b204ee5dbaf216a038b8bfd3c7e43588948f6b07d185a504

See more details on using hashes here.

File details

Details for the file performance_data_collection-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: performance_data_collection-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.2

File hashes

Hashes for performance_data_collection-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21a41908b50ac41aaefe9ac31c76a58fabb4d4ab264ba459c19d03de6b5e525b
MD5 f9536bb2bb41b0bd1d7245e760823972
BLAKE2b-256 417c7e888e3130ab33e82cb463d192df7761fd12f663b487a31a504abc44abe8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page