cpu_usage

BAP Online Manuals : Library Reference : Library by Name : cpu_usage
Previous: consult
Next: create_processes

6.2.29. cpu_usage

returns an integer indicating the current cpu load

SYNOPSIS

INCLUDE 'system.h'
cpu_usage(Load)

SYNTAX

cpu_usage(Load) (o)

ARGUMENTS

integer(Load) (o) An integer corresponding to the current cpu load.

DESCRIPTION

This predicate returns a positive integer indicating the current cpu load. A higher value indicates a higher load.
NOTE: this figure is not very accurate.

ERRORS

Fails if Load is not unbound.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

(none)


BAP Online Manuals : Library Reference : Library by Name : cpu_usage
Previous: consult
Next: create_processes