mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Clean up debug options
This commit is contained in:
parent
3e3bd9c728
commit
dc192172ad
10 changed files with 172 additions and 308 deletions
|
@ -133,7 +133,7 @@ pub fn profile<T, F>(
|
|||
where
|
||||
F: FnOnce() -> T,
|
||||
{
|
||||
if opts::get().signpost {
|
||||
if opts::get().debug.signpost {
|
||||
signpost::start(category as u32, &[0, 0, 0, (category as usize) >> 4]);
|
||||
}
|
||||
let start_time = precise_time_ns();
|
||||
|
@ -141,7 +141,7 @@ where
|
|||
let val = callback();
|
||||
|
||||
let end_time = precise_time_ns();
|
||||
if opts::get().signpost {
|
||||
if opts::get().debug.signpost {
|
||||
signpost::end(category as u32, &[0, 0, 0, (category as usize) >> 4]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue