Skip to main content

Telemetry

Struct Telemetry 

Source
pub struct Telemetry {
Show 25 fields pub paper_id: String, pub git_sha: String, pub cmdline: String, pub host: String, pub timeout_s: u32, pub schema_version: u32, pub wall_us: u64, pub phase_us: [u64; 17], pub formulae: u32, pub math_parse_attempts: u32, pub math_parse_count: u64, pub math_parse_buckets: [u32; 9], pub graphics_assets: u32, pub graphics_subprocess_count: u32, pub db_objects: u32, pub output_bytes: u64, pub warnings: u32, pub errors: u32, pub fatal_errors: u32, pub external_tool_count: u32, pub max_rss_kb: u64, pub child_user_us: u64, pub child_sys_us: u64, pub category: String, pub exit_code: i32,
}
Expand description

Per-job telemetry record.

Identifier fields (paper_id, cmdline, host, git_sha) are filled in by the binary entry point, not by the engine. Phase wall times and counts are populated by the engine via this module’s API.

Fields§

§paper_id: String§git_sha: String§cmdline: String§host: String§timeout_s: u32§schema_version: u32§wall_us: u64§phase_us: [u64; 17]§formulae: u32§math_parse_attempts: u32§math_parse_count: u64§math_parse_buckets: [u32; 9]§graphics_assets: u32§graphics_subprocess_count: u32§db_objects: u32§output_bytes: u64§warnings: u32§errors: u32§fatal_errors: u32§external_tool_count: u32§max_rss_kb: u64§child_user_us: u64§child_sys_us: u64§category: String§exit_code: i32

Implementations§

Source§

impl Telemetry

Source

pub fn to_json_line(&self) -> String

Serialize as a single-line JSON object (suitable for JSONL). Hand-written to avoid pulling serde into latexml_core.

Trait Implementations§

Source§

impl Clone for Telemetry

Source§

fn clone(&self) -> Telemetry

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 Telemetry

Source§

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

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

impl Default for Telemetry

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.