Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profiling #478

Closed
wants to merge 3 commits into from
Closed

Profiling #478

Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

comment on updating NUM_BUCKETS in time.rs

  • Loading branch information
Tim Kuehn
Tim Kuehn committed May 24, 2013
commit 207a4e1f432d74b3aae51df0dd34f9ffd9ab6f25
@@ -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,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.