Skip to content

Add a function to getCurrentOsProcess() #44

@SuperPat45

Description

@SuperPat45

Today to get the current OS process, we can do:

    OsProcess currentProcess = monitor.processTree().find(monitor.currentPid());
    if (currentProcess != null)

The function processTree() reads all process information, on Linux it may be a hundred of files.

As an optimization, we need to add a monitor.getCurrentOsProcess() function who reads only the necessary information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions