Skip to content

refactor: Use debug level tracing for ast related tracing#10411

Merged
kdy1 merged 3 commits intoswc-project:mainfrom
hardfist:yj/use-debug-tracing
Apr 29, 2025
Merged

refactor: Use debug level tracing for ast related tracing#10411
kdy1 merged 3 commits intoswc-project:mainfrom
hardfist:yj/use-debug-tracing

Conversation

@hardfist
Copy link
Collaborator

@hardfist hardfist commented Apr 28, 2025

Description:
ast related tracing contains too much trace data and seems not suitable for info level tracing, so change it to debug level which is same as rustc https://github.com/rust-lang/rust/blob/2ea33b591050c4ca1a3752830b29112638faecf6/compiler/rustc_ast_lowering/src/index.rs#L74

BREAKING CHANGE:
No

Related issue (if exists):

@hardfist hardfist requested a review from a team as a code owner April 28, 2025 07:30
@changeset-bot
Copy link

changeset-bot bot commented Apr 28, 2025

🦋 Changeset detected

Latest commit: c262238

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@hardfist hardfist force-pushed the yj/use-debug-tracing branch from ac5dcfc to 9a14cac Compare April 28, 2025 07:36
@codspeed-hq
Copy link

codspeed-hq bot commented Apr 28, 2025

CodSpeed Performance Report

Merging #10411 will degrade performances by 2.51%

Comparing hardfist:yj/use-debug-tracing (c262238) with main (b703f21)

Summary

❌ 1 regressions
✅ 151 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
es/lints/libs/terser 29.4 ms 30.1 ms -2.51%

@kdy1 kdy1 self-assigned this Apr 29, 2025
@kdy1 kdy1 added this to the Planned milestone Apr 29, 2025
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you modify swc_trace_macro, too?

@hardfist hardfist requested a review from a team as a code owner April 29, 2025 00:53
@hardfist
Copy link
Collaborator Author

Can you modify swc_trace_macro, too?

done

@hardfist hardfist force-pushed the yj/use-debug-tracing branch from dab45d9 to 617278f Compare April 29, 2025 02:02
@kdy1 kdy1 changed the title fix: use debug level tracing for ast related tracing refactor: Use debug level tracing for ast related tracing Apr 29, 2025
@kdy1 kdy1 merged commit 3a0fa99 into swc-project:main Apr 29, 2025
34 checks passed
@kdy1 kdy1 modified the milestones: Planned, v1.11.23 Apr 29, 2025
bvanjoi pushed a commit to bvanjoi/swc that referenced this pull request Apr 29, 2025
…t#10411)

**Description:**
ast related tracing contains too much trace data and seems not suitable
for info level tracing, so change it to debug level which is same as
rustc
https://github.com/rust-lang/rust/blob/2ea33b591050c4ca1a3752830b29112638faecf6/compiler/rustc_ast_lowering/src/index.rs#L74
@swc-project swc-project locked as resolved and limited conversation to collaborators May 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants