servo/components/shared/profile
Martin Robinson 77cfca65c4
script: Eliminate code duplication in the task queue (#34798)
Instead of creating a type for each `TaskSource` variety have each `TaskSource`
hold the same kind of sender (this was inconsistent before, but each
sender was effectively the same trait object), a pipeline, and a
`TaskSourceName`. This elminates the need to reimplement the same
queuing code for every task source.

In addition, have workers hold their own `TaskManager`. This allows just
exposing the manager on the `GlobalScope`. Currently the `TaskCanceller`
is different, but this will also be eliminated in a followup change.

This is a the first step toward having a shared set of `Sender`s on
`GlobalScope`.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-01-01 13:50:52 +00:00
..
Cargo.toml Plumb time profiler output into tracing (#34238) 2024-11-15 09:10:01 +00:00
ipc.rs Plumb time profiler output into tracing (#34238) 2024-11-15 09:10:01 +00:00
lib.rs Plumb URL into interval profiler tracing events (#34337) 2024-11-22 13:31:00 +00:00
mem.rs Use ROUTER::add_typed_route instead of ROUTER::add_route everywhere (#33866) 2024-10-18 10:47:52 +00:00
time.rs script: Eliminate code duplication in the task queue (#34798) 2025-01-01 13:50:52 +00:00