mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
This pull request refactors existing tracing annotations to leverage the new `servo_tracing::instrument` macro introduced in #36573. Specifically, the following transformations were applied: - Removed `#[cfg_attr(feature = "tracing", ...)]` wrappers. - Replaced `tracing::instrument` with `servo_tracing::instrument`. - Removed `level = "trace"` - Removed `fields(servo_profiling = true)` from tracing attributes however retained others like `name`. `skip type` Closes: #36661 --------- Signed-off-by: Bhuwan Pandit <bhuwanpandit109@gmail.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> Co-authored-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
This commit is contained in:
parent
bdf8c0ebc8
commit
04bcafa140
16 changed files with 137 additions and 527 deletions
|
@ -1634,15 +1634,7 @@ impl From<&InheritedText> for SegmentContentFlags {
|
|||
}
|
||||
|
||||
impl InlineFormattingContext {
|
||||
#[cfg_attr(
|
||||
feature = "tracing",
|
||||
tracing::instrument(
|
||||
name = "InlineFormattingContext::new_with_builder",
|
||||
skip_all,
|
||||
fields(servo_profiling = true),
|
||||
level = "trace",
|
||||
)
|
||||
)]
|
||||
#[servo_tracing::instrument(name = "InlineFormattingContext::new_with_builder", skip_all)]
|
||||
pub(super) fn new_with_builder(
|
||||
builder: InlineFormattingContextBuilder,
|
||||
layout_context: &LayoutContext,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue