mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Set all tracing spans to trace level for now (#34256)
* Clean up tracing instrumentation Signed-off-by: Delan Azabani <dazabani@igalia.com> * Set all tracing spans to trace level for now Signed-off-by: Delan Azabani <dazabani@igalia.com> --------- Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
parent
9a98852806
commit
caf2467649
11 changed files with 158 additions and 164 deletions
|
@ -280,7 +280,7 @@ impl FontContext {
|
|||
/// cache thread and a `FontDescriptor` which contains the styling parameters.
|
||||
#[cfg_attr(
|
||||
feature = "tracing",
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true))
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true), level = "trace")
|
||||
)]
|
||||
fn create_font(
|
||||
&self,
|
||||
|
|
|
@ -147,20 +147,15 @@ impl SystemFontService {
|
|||
|
||||
#[cfg_attr(
|
||||
feature = "tracing",
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true))
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true), level = "trace")
|
||||
)]
|
||||
fn run(&mut self) {
|
||||
loop {
|
||||
let msg = self.port.recv().unwrap();
|
||||
|
||||
#[cfg(feature = "tracing")]
|
||||
let span = tracing::span!(
|
||||
tracing::Level::TRACE,
|
||||
"SystemFontServiceMessage",
|
||||
servo_profiling = true
|
||||
);
|
||||
#[cfg(feature = "tracing")]
|
||||
let _enter = span.enter();
|
||||
let _span =
|
||||
tracing::trace_span!("SystemFontServiceMessage", servo_profiling = true).entered();
|
||||
match msg {
|
||||
SystemFontServiceMessage::GetFontTemplates(
|
||||
font_descriptor,
|
||||
|
@ -192,7 +187,7 @@ impl SystemFontService {
|
|||
|
||||
#[cfg_attr(
|
||||
feature = "tracing",
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true))
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true), level = "trace")
|
||||
)]
|
||||
fn fetch_new_keys(&mut self) {
|
||||
if !self.free_font_keys.is_empty() && !self.free_font_instance_keys.is_empty() {
|
||||
|
@ -212,7 +207,7 @@ impl SystemFontService {
|
|||
|
||||
#[cfg_attr(
|
||||
feature = "tracing",
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true))
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true), level = "trace")
|
||||
)]
|
||||
fn get_font_templates(
|
||||
&mut self,
|
||||
|
@ -228,7 +223,7 @@ impl SystemFontService {
|
|||
|
||||
#[cfg_attr(
|
||||
feature = "tracing",
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true))
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true), level = "trace")
|
||||
)]
|
||||
fn refresh_local_families(&mut self) {
|
||||
self.local_families.clear();
|
||||
|
@ -242,7 +237,7 @@ impl SystemFontService {
|
|||
|
||||
#[cfg_attr(
|
||||
feature = "tracing",
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true))
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true), level = "trace")
|
||||
)]
|
||||
fn find_font_templates(
|
||||
&mut self,
|
||||
|
@ -269,7 +264,7 @@ impl SystemFontService {
|
|||
|
||||
#[cfg_attr(
|
||||
feature = "tracing",
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true))
|
||||
tracing::instrument(skip_all, fields(servo_profiling = true), level = "trace")
|
||||
)]
|
||||
fn get_font_instance(
|
||||
&mut self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue