From 207a4e1f432d74b3aae51df0dd34f9ffd9ab6f25 Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Thu, 23 May 2013 18:50:29 -0700 Subject: [PATCH] comment on updating NUM_BUCKETS in time.rs --- src/components/servo-util/time.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/servo-util/time.rs b/src/components/servo-util/time.rs index d5a87d4c132..8bb698981f0 100644 --- a/src/components/servo-util/time.rs +++ b/src/components/servo-util/time.rs @@ -22,6 +22,7 @@ pub enum ProfilerCategory { RenderingWaitSubtasksCategory, RenderingCategory, } +// change this whenever buckets are added/rm'd static NUM_BUCKETS: uint = 12; pub type ProfilerChan = SharedChan<(ProfilerCategory, uint)>; @@ -81,6 +82,7 @@ impl ProfilerContext { let mut i = 0; for self.buckets.each |bucket| { let prof_msg = match i { + // must be in same order as ProfilerCategory 0 => CompositingCategory, 1 => LayoutPerformCategory, 2 => LayoutQueryCategory,