Skip to main content

module util::Monitor

rascal-0.34.0

Monitor the progress of a task/job.

Usage

import util::Monitor;

function jobStart

Log the start of a job.

void jobStart(str label, int work=1, int totalWork=100)

jobStart registers a new current job on the job stack with an amount of steps todo and how much work it contributes (when it ends) to its parent job (if any).

function jobStep

Log to the user that a certain event has happened under the currently registered Job.

void jobStep(str label, str message, int work = 1)

function jobEnd

int jobEnd(str label, bool success=true)

function jobTodo

void jobTodo(str label, int work=100)

function jobIsCancelled

void jobIsCancelled(str label)

function jobWarning

void jobWarning(str message, loc src)