Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[workspace]
members = ["src/uu/hugetop"]
# procps (uutils)
# * see the repository LICENSE, README, and CONTRIBUTING files for more information

Expand Down Expand Up @@ -33,6 +35,7 @@ uudoc = []

feat_common_core = [
"free",
"hugetop",
"pgrep",
"pidof",
"pidwait",
Expand Down Expand Up @@ -94,6 +97,7 @@ uucore = { workspace = true }

#
free = { optional = true, version = "0.0.1", package = "uu_free", path = "src/uu/free" }
hugetop = { optional = true, version = "0.0.1", package = "uu_hugetop", path = "src/uu/hugetop" }
pgrep = { optional = true, version = "0.0.1", package = "uu_pgrep", path = "src/uu/pgrep" }
pidof = { optional = true, version = "0.0.1", package = "uu_pidof", path = "src/uu/pidof" }
pidwait = { optional = true, version = "0.0.1", package = "uu_pidwait", path = "src/uu/pidwait" }
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Provides command line and full screen utilities for browsing procfs, a "pseudo"

Ongoing:
* `free`: Shows the amount of free and used memory in the system.
* `hugetop`: Report hugepage usage of processes and the system as a whole.
* `pgrep`: Searches for processes based on name and other attributes.
* `pidof`: Find the process ID of a running program.
* `pidwait`: Waits for a specific process to terminate.
Expand All @@ -30,9 +31,6 @@ Ongoing:
* `w`: Shows who is logged on and what they are doing.
* `watch`: Executes a program periodically, showing output fullscreen.

TODO:
* `hugetop`: Report hugepage usage of processes and the system as a whole.

Elsewhere:

* `kill` is already implemented in https://github.com/uutils/coreutils
Expand Down
28 changes: 28 additions & 0 deletions src/uu/hugetop/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "uu_hugetop"
description = "hugetop ~ (uutils) Report hugepage usage for the system and processes"
repository = "https://github.com/uutils/procps/tree/main/src/uu/hugetop"
authors.workspace = true
categories.workspace = true
edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
version.workspace = true

[lints]
workspace = true

[dependencies]
clap = { workspace = true }
uucore = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }

[lib]
path = "src/hugetop.rs"

[[bin]]
name = "hugetop"
path = "src/main.rs"
Loading
Loading