mumu-process

Crates.iomumu-process
lib.rsmumu-process
version0.1.0
created_at2025-06-21 14:05:46.781135+00
updated_at2025-06-21 14:05:46.781135+00
descriptionProces tools plugin for the Lava language
homepagehttps://lava.nu11.uk
repositoryhttps://gitlab.com/tofo/mumu-process
max_upload_size
id1720837
size51,191
(rusty-shrimp)

documentation

README

lavaprocess

crates.io License: MIT OR Apache-2.0

lavaprocess is a Lava/MuMu plugin for process and system info utilities.

Features

  • process:info: Gathers information about the current process and environment, including:
    • PID, UID, Username
    • Executable path & binary name
    • Current working directory
    • Launch arguments
    • Platform & architecture
    • Memory usage (KB)
  • Background task support with live task counting
  • Designed for use as a Lava plugin (cdylib)
In Lava:

```lava
extend("process")

process:info((info) => {
  slog("Process info: ", info)
})

n = process:check_tasks()
slog("Background tasks remaining: ", n)

Example structure of returned info

[
  pid: 12345,
  uid: 1000,
  username: "guru",
  self: "/usr/bin/laval",
  binary_name: "laval",
  cwd: "/home/guru/projects",
  launch_args: ["laval", "main.mu"],
  platform: "linux",
  architecture: "x86_64",
  memory_usage_kb: 54321,
  event_loop_len: 42,
]

Building

make
make install

Or use cargo build --release and copy libmumuprocess.so to your Lava plugins directory.

License

Dual-licensed under MIT or Apache-2.0, at your option.
See LICENSE.

© 2025 Tom Fotheringham and contributors

Links

Commit count: 0

cargo fmt