From 1d2c038954d58e251305bf99a94b5c2c952c4a08 Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Thu, 29 Aug 2013 00:45:11 -0400 Subject: [PATCH] reorder some struct declarations in profiler --- src/components/util/time.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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);