From 9aae20fda1118658b1262dfe0fc39208785189de Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Thu, 30 Nov 2023 20:23:32 +0800 Subject: [PATCH] docs: add default percentage Signed-off-by: hi-rustin --- README.md | 3 ++- tokio-console/src/config.rs | 1 + tokio-console/tests/cli-ui.stdout | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f170f777..b5a4db4d8 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,8 @@ Options: Each warning is specified by its name, which is one of: * `self-wakes` -- Warns when a task wakes itself more than a - certain percentage of its total wakeups. + certain percentage of its total wakeups. Default percentage is + 50%. * `lost-waker` -- Warns when a task is dropped without being woken. diff --git a/tokio-console/src/config.rs b/tokio-console/src/config.rs index 1eb176cdb..2cc40d4eb 100644 --- a/tokio-console/src/config.rs +++ b/tokio-console/src/config.rs @@ -57,6 +57,7 @@ pub struct Config { /// Each warning is specified by its name, which is one of: /// /// * `self-wakes` -- Warns when a task wakes itself more than a certain percentage of its total wakeups. + /// Default percentage is 50%. /// /// * `lost-waker` -- Warns when a task is dropped without being woken. /// diff --git a/tokio-console/tests/cli-ui.stdout b/tokio-console/tests/cli-ui.stdout index cc8da63cf..519a82dbd 100644 --- a/tokio-console/tests/cli-ui.stdout +++ b/tokio-console/tests/cli-ui.stdout @@ -47,7 +47,8 @@ Options: Each warning is specified by its name, which is one of: * `self-wakes` -- Warns when a task wakes itself more than a - certain percentage of its total wakeups. + certain percentage of its total wakeups. Default percentage is + 50%. * `lost-waker` -- Warns when a task is dropped without being woken.