/metric

A Python library to gather own process metrics.

Primary LanguageShellApache License 2.0Apache-2.0

metric

A Python library to gather own process metrics.

  • Free software: Apache License, Version 2.0

Examples

Get the used memory:

>>> import metric
>>> metric.used_memory()

Get the used memory in specific units:

>>> metric.used_memory_bytes()
>>> metric.used_memory_kilobytes()
>>> metric.used_memory_megabytes()
>>> metric.used_memory_gigabytes()