← Back to Pull requests

Everywhere: Add initial support for the Tracy profiler #9073

Closed
unknown closed this pull request without merging on May 27, 2026 02:18 UTC
View on GitHub
unknown unknown commented on Apr 24, 2026 13:03 UTC
Author

This is a revival of https://github.com/LadybirdBrowser/ladybird/pull/8189

This allows us to get explicit zones (complimented with full call stacks on Linux and Windows) plus plot graphs such as memory usage (including GC blocks and live GC heap size), in per-frame boundaries or across the capture lifetime.

Demos:

  • Loading a Ladybird newsletter and finding memory allocation churn when playing a video:
  • https://github.com/user-attachments/assets/12baba31-7a7e-41b8-ade3-1c28a78ff41d

  • Loading Google and investigating a long frame, seeing layout update takes a long time and allocates ~1 MB of memory
  • https://github.com/user-attachments/assets/de9c6577-8007-4c9a-8e85-875e597c0a16

  • Long JS execution frame on Google:

  • <img width="2672" height="1522" alt="Screenshot 2026-02-26 at 15 47 29" src="https://github.com/user-attachments/assets/5c706943-55fb-427d-8b81-2ee068970082" />

  • Ghost frames (i.e. stack traces) from a remote Linux machine with perf_event_paranoid=1:

  • <img width="2672" height="1522" alt="Screenshot 2026-02-26 at 16 41 06" src="https://github.com/user-attachments/assets/f188b281-6420-4a4c-963d-54cd07570ca5" />

  • Active allocations with stack traces:

  • <img width="2672" height="1522" alt="Screenshot 2026-02-26 at 16 42 55" src="https://github.com/user-attachments/assets/8d8ffc46-1271-4974-8af7-691d2ed141bf" />

  • Memory pool categorisation:

  • <img width="2672" height="1522" alt="Screenshot 2026-02-26 at 16 47 25" src="https://github.com/user-attachments/assets/bb3aa923-4914-4502-ae62-4cd5ed63289b" />

    Diff: 194 lines (+145 / -49) across 2 files Reviewer: R-Goc Review duration: 46875m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 194 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.315
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #9073"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36% (MEDIUM) · Higher = larger blast radius
    36%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.2% · Safe to merge
    14.2%