Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 29, 2025

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
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants