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.