resusage 0.1.0

Virtual memory, RAM, CPU usage by system or process


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:


This package provides sub packages which can be used individually:

resusage:totalusage - A minimal D application.

resusage:processusage - A minimal D application.

resusage:cpuwatcher - A minimal D application.

Resusage

Obtaining of virtual memory, RAM and CPU usage by the whole system or by single process.

Currently works only on Linux.

Documentation

Ddoc:

dub build --build=docs

Ddox:

dub build --build=ddox

Examples

Total usage

Prints total amount of virtual and physical memory and their current usage in the system, in bytes.

dub run resusage:totalusage 

Process usage

Prints amount of virtual and physical memory used by process.

dub run resusage:processusage -- `pidof process`

CPU Watcher

Watch system CPU time:

dub run resusage:cpuwatcher

Watch process CPU time:

dub run resusage:cpuwatcher -- `pidof process`
Authors:
  • Roman Chistokhodov
Sub packages:
resusage:totalusage, resusage:processusage, resusage:cpuwatcher
Dependencies:
none
Versions:
0.4.0 2023-Sep-15
0.3.2 2020-Feb-21
0.3.1 2020-Feb-21
0.3.0 2019-Jul-26
0.2.8 2018-May-05
Show all 18 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 6 downloads this month

  • 8452 downloads total

Score:
1.4
Short URL:
resusage.dub.pm