Add task profiler, which works by instrumenting each task runtime when enabled.

This commit is contained in:
Glenn Watson 2014-10-29 07:24:34 +10:00
parent 3aad350a64
commit 90d793cdc8
7 changed files with 241 additions and 10 deletions

View file

@ -17,6 +17,9 @@ extern crate glfw_app;
#[cfg(not(test),not(target_os="android"))]
use servo_util::opts;
#[cfg(not(test),not(target_os="android"))]
use servo_util::rtinstrument;
#[cfg(not(test),not(target_os="android"))]
use servo::run;
@ -35,6 +38,8 @@ fn start(argc: int, argv: *const *const u8) -> int {
Some(glfw_app::create_window())
};
run(window);
rtinstrument::teardown();
}
})
}