Debian Codegraph @

src/widgets/mem_graph.rs

raw symbols SCIP
1 use std::time::Instant;
2
3 use crate::components::time_series::{PercentTimeGraph, TimeseriesConfig};
4
5 pub struct MemWidgetState {
6 pub graph: PercentTimeGraph,
7 }
8
9 impl MemWidgetState {
10 pub fn init(config: TimeseriesConfig, autohide_timer: Option<Instant>) -> Self {
11 MemWidgetState {
12 graph: PercentTimeGraph::new(config, autohide_timer),
13 }
14 }
15 }