mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
comment on updating NUM_BUCKETS in time.rs
This commit is contained in:
parent
089b1fc0c7
commit
207a4e1f43
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue