Skip to main content

Module stats

Module stats 

Source

Re-exportsΒ§

use std::collections::BTreeMap; πŸ”’
use std::io::Write; πŸ”’
use std::sync::Arc; πŸ”’
use std::sync::atomic::AtomicBool; πŸ”’
use std::sync::atomic::Ordering; πŸ”’
use std::time::Duration; πŸ”’
use anyhow::Result; πŸ”’
use scx_stats_derive::Stats; πŸ”’
use scx_stats_derive::stat_doc; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Serialize; πŸ”’
use serde::Serialize; πŸ”’
use crate::console; πŸ”’
use scx_stats::prelude::*; πŸ”’

StructsΒ§

Dashboard πŸ”’
Print the metrics as one block per interval, appended like a log so the history stays in the scrollback and in any file the output goes to.
Metrics
OpStats
Kernel BPF run-time statistics of one sched_ext callback, see BPF_ENABLE_STATS. Cumulative on the server side, per interval once the client has taken the delta.
_AssertStatsMeta_0 πŸ”’

ConstantsΒ§

OP_ORDER πŸ”’
Display order of the callbacks: the task’s life from wakeup to exit, then the cgroup and scheduler-wide ones. Anything unlisted follows, alphabetically.

FunctionsΒ§

human πŸ”’
Human scale for a rate or a count: 12.3k, 1.2M.
human_bytes
Human scale for a size in bytes: 512 B, 1.5 MiB.
human_ns πŸ”’
Human scale for a duration in nanoseconds.
monitor
op_rank πŸ”’
server_data