NcStats

Type Alias NcStats 

Source
pub type NcStats = ncstats;
Expand description

notcurses runtime statistics

Aliased Type§

#[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: u32,
}

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: u32

number of planes currently in existence

Implementations§

Source§

impl NcStats

§NcStats Methods.

Source

pub fn new(nc: &mut Nc) -> &mut Self

Allocates an NcStats object.

Source

pub fn stats(&mut self, nc: &mut Nc)

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

Source

pub fn reset(&mut self, nc: &mut Nc)

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