diff --git a/src/components/util/time.rs b/src/components/util/time.rs index 58cd8210040..a847bef12c7 100644 --- a/src/components/util/time.rs +++ b/src/components/util/time.rs @@ -52,14 +52,6 @@ pub enum ProfilerCategory { // FIXME(rust#8803): workaround for lack of CTFE function on enum types to return length NumBuckets, } -type ProfilerBuckets = TreeMap; - -// back end of the profiler that handles data aggregation and performance metrics -pub struct Profiler { - port: Port, - buckets: ProfilerBuckets, - last_msg: Option, -} impl ProfilerCategory { // convenience function to not have to cast every time @@ -99,6 +91,15 @@ impl ProfilerCategory { } } +type ProfilerBuckets = TreeMap; + +// back end of the profiler that handles data aggregation and performance metrics +pub struct Profiler { + port: Port, + buckets: ProfilerBuckets, + last_msg: Option, +} + impl Profiler { pub fn create(port: Port) { let port = Cell::new(port);