mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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,
|
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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue