ass_renderer/renderer/
metrics.rs1#[cfg(not(feature = "nostd"))]
4use std::time::Duration;
5
6#[derive(Debug, Clone)]
8pub struct PerformanceMetrics {
9 #[cfg(not(feature = "nostd"))]
10 pub parse_time: Duration,
12 #[cfg(not(feature = "nostd"))]
13 pub shape_time: Duration,
15 #[cfg(not(feature = "nostd"))]
16 pub render_time: Duration,
18 #[cfg(not(feature = "nostd"))]
19 pub total_time: Duration,
21 #[cfg(feature = "nostd")]
22 pub parse_time: u64, #[cfg(feature = "nostd")]
24 pub shape_time: u64, #[cfg(feature = "nostd")]
26 pub render_time: u64, #[cfg(feature = "nostd")]
28 pub total_time: u64, }
30
31#[derive(Debug, Clone)]
33pub struct CacheStatistics {
34 pub glyph_hits: usize,
36 pub font_entries: usize,
38}