comment on updating NUM_BUCKETS in time.rs

This commit is contained in:
Tim Kuehn 2013-05-23 18:50:29 -07:00
parent 089b1fc0c7
commit 207a4e1f43

View file

@ -22,6 +22,7 @@ pub enum ProfilerCategory {
RenderingWaitSubtasksCategory, RenderingWaitSubtasksCategory,
RenderingCategory, RenderingCategory,
} }
// change this whenever buckets are added/rm'd
static NUM_BUCKETS: uint = 12; static NUM_BUCKETS: uint = 12;
pub type ProfilerChan = SharedChan<(ProfilerCategory, uint)>; pub type ProfilerChan = SharedChan<(ProfilerCategory, uint)>;
@ -81,6 +82,7 @@ impl ProfilerContext {
let mut i = 0; let mut i = 0;
for self.buckets.each |bucket| { for self.buckets.each |bucket| {
let prof_msg = match i { let prof_msg = match i {
// must be in same order as ProfilerCategory
0 => CompositingCategory, 0 => CompositingCategory,
1 => LayoutPerformCategory, 1 => LayoutPerformCategory,
2 => LayoutQueryCategory, 2 => LayoutQueryCategory,