mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Remove the old profiler label frames code in the servo codebase and replace it with the new API
Differential Revision: https://phabricator.services.mozilla.com/D120795
This commit is contained in:
parent
9e33a154fd
commit
5a9fae3fb5
6 changed files with 5 additions and 109 deletions
|
@ -274,7 +274,7 @@ pub fn traverse_nodes<'a, 'scope, E, D, I>(
|
|||
top_down_dom(&work, root, traversal_data, scope, pool, traversal, tls);
|
||||
} else {
|
||||
scope.spawn_fifo(move |scope| {
|
||||
profiler_label!(Style);
|
||||
gecko_profiler_label!(Layout, StyleComputation);
|
||||
let work = work;
|
||||
top_down_dom(&work, root, traversal_data, scope, pool, traversal, tls);
|
||||
});
|
||||
|
@ -284,7 +284,7 @@ pub fn traverse_nodes<'a, 'scope, E, D, I>(
|
|||
let nodes: WorkUnit<E::ConcreteNode> = chunk.collect();
|
||||
let traversal_data_copy = traversal_data.clone();
|
||||
scope.spawn_fifo(move |scope| {
|
||||
profiler_label!(Style);
|
||||
gecko_profiler_label!(Layout, StyleComputation);
|
||||
let n = nodes;
|
||||
top_down_dom(&*n, root, traversal_data_copy, scope, pool, traversal, tls)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue