Skip to content

chore: update sftrace skill#13078

Merged
hardfist merged 3 commits intomainfrom
yj/update-skill
Feb 16, 2026
Merged

chore: update sftrace skill#13078
hardfist merged 3 commits intomainfrom
yj/update-skill

Conversation

@hardfist
Copy link
Contributor

@hardfist hardfist commented Feb 16, 2026

Summary

add sftrace filter support in skill

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Feb 16, 2026
@hardfist hardfist marked this pull request as ready for review February 16, 2026 12:00
Copilot AI review requested due to automatic review settings February 16, 2026 12:00
@hardfist hardfist merged commit 74bee3a into main Feb 16, 2026
26 checks passed
@hardfist hardfist deleted the yj/update-skill branch February 16, 2026 12:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the rspack-sftrace agent skill documentation to include sftrace filter usage and a more explicit “run in example directory” workflow for generating/recording/analyzing traces.

Changes:

  • Expand workflow to build a profiling binding and optionally generate an sftrace.filter file from the .node symbols.
  • Document full vs filtered recording outputs stored under a per-run trace directory in the target example.
  • Add “Filtering Notes” caveats to clarify limitations of symbol-based filtering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +69 to +76
### 5) Analyze sf.log

Convert sftrace log to perfetto protobuf format.

```sh
sftrace convert sf.log -o sf.pb.gz
cd examples/react
TRACE_DIR="sftrace-YYYYMMDD-HHMMSS" # replace with your run directory
sftrace convert "$TRACE_DIR/sf.filtered.log" -o "$TRACE_DIR/sf.filtered.pb.gz"
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

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

The section title says "Analyze sf.log", but the example converts sf.filtered.log into sf.filtered.pb.gz. This is confusing for users who recorded the full trace. Consider either renaming the header to refer to the filtered log, or show both conversions (full + filtered) with matching filenames.

Copilot uses AI. Check for mistakes.
### 5) Optional: Visualization using [viztracer](https://github.com/gaogaotiantian/viztracer)
### 6) Optional: Visualization using [viztracer](https://github.com/gaogaotiantian/viztracer)

```sh
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

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

The vizviewer example references $TRACE_DIR, but that variable isn't defined in this code block (and step 5 defines it as a placeholder value). Consider adding a one-liner in the snippet to set TRACE_DIR (or explicitly say "reuse TRACE_DIR from step 4") to make the copy/paste flow work.

Suggested change
```sh
```sh
TRACE_DIR="sftrace-YYYYMMDD-HHMMSS" # replace with your run directory

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments