mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Add task profiler, which works by instrumenting each task runtime when enabled.
This commit is contained in:
parent
3aad350a64
commit
90d793cdc8
7 changed files with 241 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue