profiler.rs (390B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 /// A profiler for profiling rasterize time. 6 pub trait GlyphRasterizeProfiler { 7 fn start_time(&mut self); 8 9 fn end_time(&mut self) -> f64; 10 11 fn set(&mut self, value: f64); 12 }