Struct libnotcurses_sys::c_api::ncstats[][src]

#[repr(C)]
pub struct ncstats {
Show 36 fields pub renders: u64, pub writeouts: u64, pub failed_renders: u64, pub failed_writeouts: u64, pub raster_bytes: u64, pub raster_max_bytes: i64, pub raster_min_bytes: i64, pub render_ns: u64, pub render_max_ns: i64, pub render_min_ns: i64, pub raster_ns: u64, pub raster_max_ns: i64, pub raster_min_ns: i64, pub writeout_ns: u64, pub writeout_max_ns: i64, pub writeout_min_ns: i64, pub cellelisions: u64, pub cellemissions: u64, pub fgelisions: u64, pub fgemissions: u64, pub bgelisions: u64, pub bgemissions: u64, pub defaultelisions: u64, pub defaultemissions: u64, pub refreshes: u64, pub sprixelemissions: u64, pub sprixelelisions: u64, pub sprixelbytes: u64, pub appsync_updates: u64, pub input_errors: u64, pub input_events: u64, pub hpa_gratuitous: u64, pub cell_geo_changes: u64, pub pixel_geo_changes: u64, pub fbbytes: u64, pub planes: c_uint,
}
Expand description

whenever a new field is added here, ensure we add the proper rule to notcurses_stats_reset(), so that values are preserved in the stash stats.

Fields

renders: u64

successful ncpile_render() runs

writeouts: u64

successful ncpile_rasterize() runs

failed_renders: u64

aborted renders, should be 0

failed_writeouts: u64

aborted writes

raster_bytes: u64

bytes emitted to ttyfp

raster_max_bytes: i64

max bytes emitted for a frame

raster_min_bytes: i64

min bytes emitted for a frame

render_ns: u64

nanoseconds spent rendering

render_max_ns: i64

max ns spent in render for a frame

render_min_ns: i64

min ns spent in render for a frame

raster_ns: u64

nanoseconds spent rasterizing

raster_max_ns: i64

max ns spent in raster for a frame

raster_min_ns: i64

min ns spent in raster for a frame

writeout_ns: u64

nanoseconds spent writing frames to terminal

writeout_max_ns: i64

max ns spent writing out a frame

writeout_min_ns: i64

min ns spent writing out a frame

cellelisions: u64

cells we elided entirely thanks to damage maps

cellemissions: u64

total number of cells emitted to terminal

fgelisions: u64

RGB fg elision count

fgemissions: u64

RGB fg emissions

bgelisions: u64

RGB bg elision count

bgemissions: u64

RGB bg emissions

defaultelisions: u64

default color was emitted

defaultemissions: u64

default color was elided

refreshes: u64

refresh requests (non-optimized redraw)

sprixelemissions: u64

sprixel draw count

sprixelelisions: u64

sprixel elision count

sprixelbytes: u64

sprixel bytes emitted

appsync_updates: u64

how many application-synchronized updates?

input_errors: u64

errors processing control sequences/utf8

input_events: u64

characters returned to userspace

hpa_gratuitous: u64

unnecessary hpas issued

cell_geo_changes: u64

cell geometry changes (resizes)

pixel_geo_changes: u64

pixel geometry changes (font resize)

fbbytes: u64

total bytes devoted to all active framebuffers

planes: c_uint

number of planes currently in existence

Implementations

Allocates an NcStats object.

Acquires an atomic snapshot of the notcurses object’s stats.

Resets all cumulative stats (immediate ones are not reset).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.