feat(profiling): add dev-profiling Cargo profile for fast iteration#284
Merged
streamer45 merged 1 commit intomainfrom Apr 11, 2026
Merged
feat(profiling): add dev-profiling Cargo profile for fast iteration#284streamer45 merged 1 commit intomainfrom
streamer45 merged 1 commit intomainfrom
Conversation
Add a 'dev-profiling' Cargo profile that inherits from 'dev' with opt-level 2. This gives meaningful profiles (inlining, vectorisation) without the expensive LTO link step, and benefits from incremental compilation for fast rebuilds. Two profiling modes are now available: Dev (fast): just skit-profiling-dev serve Release (accurate): just skit-profiling serve The dev mode drops target-cpu=native (vs release) so the cache stays stable across rebuilds. Both modes enable frame pointers for pprof and share the same HTTP profiling endpoints. Signed-off-by: StreamKit Devin <devin@streamkit.dev> Co-Authored-By: Claudio Costa <cstcld91@gmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
dev-profilingCargo profile and corresponding justfile recipes so profiling no longer requires a full release-lto build. Two profiling modes are now available:dev-profiling)release-lto)just skit-profiling-dev servejust skit-profiling servetarget-cpu=nativeCargo.toml: New
[profile.dev-profiling]inheriting fromdevwithopt-level = 2. Inherits the existing per-package codec overrides (rav1e, rav1d at opt-level 3) and incremental compilation. No LTO means no expensive link step.justfile:
build-skit-profiling-devandskit-profiling-devrecipesBoth modes enable the same
--features profiling(pprof + jemalloc) and share the same HTTP profiling endpoints (profile-fetch,profile-web,profile-flame,heap-profile-*).Review & Testing Checklist for Human
just skit-profiling-dev servecompiles and starts significantly faster thanjust skit-profiling serveon your machine (the main goal of this PR)just skit-profiling servestill works identically to before (only doc comment changes)Notes
-C target-cpu=nativeto keep the compilation cache stable between regular dev builds and profiling builds. If you want native SIMD tuning in dev profiles, you can manually run withRUSTFLAGS="-C force-frame-pointers=yes -C target-cpu=native".dev-profilingbuild populates the cache, subsequent rebuilds benefit from incremental compilation — only changed workspace crates are recompiled.Link to Devin session: https://staging.itsdev.in/sessions/de77f5d7265a47dcb8c782c9fe08e6e6
Requested by: @streamer45