Skip to content

feat: add jolt-profiling crate#1364

Merged
0xAndoroid merged 8 commits intomainfrom
jolt-v2/jolt-profiling
Apr 6, 2026
Merged

feat: add jolt-profiling crate#1364
0xAndoroid merged 8 commits intomainfrom
jolt-v2/jolt-profiling

Conversation

@markosg04
Copy link
Copy Markdown
Collaborator

Summary

Changes

Testing

  • Ran tests for modified crates
  • cargo clippy and cargo fmt pass

Security Considerations

Breaking Changes

None

Copy link
Copy Markdown
Collaborator Author

markosg04 commented Mar 25, 2026

@markosg04 markosg04 marked this pull request as ready for review April 2, 2026 15:33
@0xAndoroid 0xAndoroid force-pushed the jolt-v2/jolt-field branch from 74305c7 to 17e1d5d Compare April 3, 2026 18:38
@0xAndoroid 0xAndoroid requested a review from sagar-a16z as a code owner April 3, 2026 18:38
@0xAndoroid 0xAndoroid force-pushed the jolt-v2/jolt-field branch 3 times, most recently from 15bbf97 to 327de42 Compare April 3, 2026 19:21
Base automatically changed from jolt-v2/jolt-field to main April 3, 2026 20:51
@0xAndoroid 0xAndoroid force-pushed the jolt-v2/jolt-profiling branch from 0a58fef to 240e60c Compare April 3, 2026 20:54
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

Warning

This PR has more than 500 changed lines and does not include a spec.

Large features and architectural changes benefit from a spec-driven workflow.
See CONTRIBUTING.md for details on how to create a spec.

If this PR is a bug fix, refactor, or doesn't warrant a spec, feel free to ignore this message.

@github-actions github-actions bot added the no-spec PR has no spec file label Apr 3, 2026
Remove duplicate [workspace.lints.clippy] section introduced by rebase,
add workspace lint inheritance to jolt-profiling, bump sysinfo to
workspace version, and fix all lint violations.
Copy link
Copy Markdown
Collaborator

@0xAndoroid 0xAndoroid left a comment

Choose a reason for hiding this comment

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

7 issues found after deduplication across semantic, bug, tech-debt, and security review passes. Two earlier issues (missing workspace lints, sysinfo version mismatch) were fixed in b003fba.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

Benchmark comparison (crates)

No baseline found — skipping comparison.

- Use System::new() + refresh_cpu_all() instead of new_all()/refresh_all()
- Fix format_memory_size for negative deltas (use abs comparison)
- Use BYTES_PER_MIB directly in flamegraph factor
- Drop first mutex before acquiring second in end_memory_tracing_span
- Clamp monitor interval to 50ms minimum
- Re-export flamegraph functions at crate root
- Use Acquire/Release ordering for monitor stop flag
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Benchmark comparison (crates)

No baseline found — skipping comparison.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Benchmark comparison (crates)

No baseline found — skipping comparison.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Benchmark comparison (crates)

No baseline found — skipping comparison.

Downstream crates no longer need #[cfg] gates at every call site.
@0xAndoroid 0xAndoroid force-pushed the jolt-v2/jolt-profiling branch from 701407e to 9bb5294 Compare April 6, 2026 17:40
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Benchmark comparison (crates)

No baseline found — skipping comparison.

Mutex locks recover from poisoning via into_inner. PprofGuard::new
and MetricsMonitor::start log warnings on failure instead of panicking.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

Benchmark comparison (crates)

No baseline found — skipping comparison.

@0xAndoroid 0xAndoroid merged commit d3e1744 into main Apr 6, 2026
24 checks passed
@0xAndoroid 0xAndoroid deleted the jolt-v2/jolt-profiling branch April 6, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-spec PR has no spec file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants