Skip to content

Implement ProfilerSession with flame-graph-compatible timing output #849

Closed

Description

@Kingsman-99

Overview

Build out the ProfilerSession class to capture real timings for all SDK operations and produce output compatible with the speedscope flame graph viewer (JSON format). Essential for diagnosing SDK performance bottlenecks in production.

Requirements

  • ProfilerSession wraps a StellarSplitClient and records timing for every method call
  • session.start() / session.stop() controls recording
  • session.report(): SpeedscopeProfile returns flame-graph-compatible JSON (speedscope format v0.6)
  • session.exportJSON(path): writes the report to a file
  • Tracks: method name, start time (ms), duration (ms), success/failure, nested RPC call timings
  • Tests asserting report structure matches speedscope schema
  • Runnable example script examples/profile-session.ts

Acceptance Criteria

  • ProfilerSession captures all SDK method timings
  • Output matches speedscope v0.6 JSON schema (validated with ajv)
  • exportJSON writes valid file
  • Example script runs against mock RPC
  • npm test passes with zero failures
  • TypeScript compiles with zero errors
  • ESLint passes with zero errors

Definition of Done

All CI checks must pass before the PR is reviewed.

Activity

  1. flexocode442 commented on Sep 24, 2026

    @flexocode442

    @flexocode442 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hello, I’m interested in working on this issue and would appreciate being assigned to it. Thank you.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @flexocode442 to this issue.

  2. dhikbass commented on Sep 24, 2026

    @dhikbass

    @dhikbass has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hello Maintainer, I understand the objective and reviewed the current behavior. I have a practical fix in mind and would be happy to take ownership of this task.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @dhikbass to this issue.

  3. Abub57 commented on Sep 24, 2026

    @Abub57

    @Abub57 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I am a detail-oriented and reliable individual with strong skills in research, data entry, online tasks, and following instructions. I am committed to delivering accurate and high-quality work within deadlines and am available to start tasks immediately.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Abub57 to this issue.

  4. Cherry-Olaa commented on Sep 24, 2026

    @Cherry-Olaa

    @Cherry-Olaa has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Please Can I be assign this task I will love to work on it
    I understand what’s stated and how to resolve it

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Cherry-Olaa to this issue.

  5. maztah1 commented on Sep 24, 2026

    @maztah1
    Contributor

    @maztah1 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    can i work on this issue please

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @maztah1 to this issue.

  6. drips-wave commented on Sep 24, 2026

    @drips-wave

    Congratulations, @maztah1! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

    🧑‍💻 @maztah1: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  7. added a commit that references this issue on Sep 28, 2026
    bb40d58
  8. grantfox-oss commented on Sep 28, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @maztah1's PR #949 was approved and merged by @Kingsman-99.

    🏆 @maztah1: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (955 total points). Track your full progress on GrantFox.

    👏 Great work, @maztah1! Keep contributing to Stellar-split.

  9. drips-wave commented on Sep 28, 2026

    @drips-wave

    This issue has been completed by @maztah1 as part of the Stellar Wave Program's 9th Wave 🥳

    😎 @maztah1: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcomplexity: highdxDeveloper experience and tooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions