Skip to main content

ProfileQueue

Struct ProfileQueue 

Source
pub struct ProfileQueue {
    pub profile: String,
    pub jobs: u32,
    pub waited_ms: u64,
    pub causes: Vec<CauseWait>,
    pub before_listed_ms: u64,
    pub uncovered_ms: u64,
    pub unrecorded: u32,
    pub estimated: u32,
}
Expand description

Why one profile’s jobs queued over a window, from what each plan that held them said (ADR 0154). Unlike the rest of insights, its times are milliseconds, so shares of short waits come out right. A wait runs from GitHub queueing a job to its start, less what passed while no runnerd ran, summed over the jobs counted; the causes and the two parts no cause covers add up to waited_ms.

Fields§

§profile: String

The profile.

§jobs: u32

The jobs whose waits it splits.

§waited_ms: u64

Their waits together.

§causes: Vec<CauseWait>

What each cause held them for, longest first; none of 0.

§before_listed_ms: u64

Of waited_ms, what passed before runnerd first listed the jobs queued: GitHub’s listing lag and the time to runnerd’s next listing, less any downtime in it.

§uncovered_ms: u64

Of waited_ms, what no plan held them for once listed: after a restart until the first plan, and between a planned start and its runner.

§unrecorded: u32

The jobs left out as their history rows are from before runnerd counted why jobs wait.

§estimated: u32

The jobs whose causes were counted past their start, as when a runner took one before runnerd read it, and were scaled down into the wait left after the time before the listing: their causes are estimates.

Implementations§

Source§

impl ProfileQueue

Source

pub const TITLE: &'static str = "Why jobs queued"

What the split of the profiles’ queue time is called where it shows.

Source

pub const BEFORE_LISTED: &'static str = "Before runnerd listed it"

The label of the wait before runnerd first listed a job.

Source

pub const UNCOVERED: &'static str = "No plan covered"

The label of the wait no plan held a job for.

Source

pub fn line(&self) -> String

It in a line: jvm: 42 jobs waited 12h 30m in all, then ; 3 jobs from before runnerd counted why are left out when some are, and ; 2 jobs' causes are estimates, scaled into their waits when some are; jvm: 3 jobs ended from before runnerd counted why jobs wait when none is counted.

Source

pub fn figures(&self) -> Vec<LabelledFigure>

What held the jobs, longest first, each with its share of their waits, taken from the milliseconds: Host memory 6h 10m 49%; then the wait before runnerd listed them and the wait no plan covered, when there was some. Empty when no job was counted.

Trait Implementations§

Source§

impl Clone for ProfileQueue

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProfileQueue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ProfileQueue

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ProfileQueue

Source§

impl PartialEq for ProfileQueue

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ProfileQueue

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ProfileQueue

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more