mirror of
https://github.com/servo/servo.git
synced 2025-09-27 15:20:09 +01:00
profile: Remove integration with Instruments.app "Points of Interest" (#39354)
This changes removes the integration with Instruments.app "Points of Interest" track for a variety of reasons: - This functionality is made somewhat redundant by Servo's support for Perfetto traces. - This functionality depends on the `signpost` crate which hasn't seen activity for 9 years and only supports macOS. Testing: This removes some functionality that is only observable via Instruments.app, so testing it is difficult. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
054b35e5b0
commit
020b82e1fe
6 changed files with 1 additions and 25 deletions
|
@ -24,6 +24,5 @@ malloc_size_of_derive = { workspace = true }
|
|||
serde = { workspace = true }
|
||||
servo_allocator = { path = "../../allocator" }
|
||||
servo_config = { path = "../../config" }
|
||||
signpost = { git = "https://github.com/pcwalton/signpost.git" }
|
||||
time = { workspace = true }
|
||||
tracing = { workspace = true, optional = true }
|
||||
|
|
|
@ -7,7 +7,6 @@ use ipc_channel::ipc::IpcSender;
|
|||
use log::warn;
|
||||
use malloc_size_of_derive::MallocSizeOf;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use servo_config::opts;
|
||||
use time::Duration;
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Eq, Ord, PartialEq, PartialOrd, Serialize)]
|
||||
|
@ -197,9 +196,6 @@ pub fn profile<T, F>(
|
|||
where
|
||||
F: FnOnce() -> T,
|
||||
{
|
||||
if opts::get().debug.signpost {
|
||||
signpost::start(category as u32, &[0, 0, 0, (category as usize) >> 4]);
|
||||
}
|
||||
let start_time = CrossProcessInstant::now();
|
||||
let val = {
|
||||
#[cfg(feature = "tracing")]
|
||||
|
@ -208,10 +204,6 @@ where
|
|||
};
|
||||
let end_time = CrossProcessInstant::now();
|
||||
|
||||
if opts::get().debug.signpost {
|
||||
signpost::end(category as u32, &[0, 0, 0, (category as usize) >> 4]);
|
||||
}
|
||||
|
||||
send_profile_data(category, meta, &profiler_chan, start_time, end_time);
|
||||
val
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue