-
Notifications
You must be signed in to change notification settings - Fork 83
feat(clp-package)!: Add profile setting inside CLPConfig. #1488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sitaowang1998
wants to merge
34
commits into
y-scope:main
Choose a base branch
from
sitaowang1998:profile-setting
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
752ab1a
Add python profiling utilities
Eden-D-Zhang 29436b6
Add profiling to query functions
Eden-D-Zhang 4d19c81
Remove `CLP_ENABLE_PROFILING` environment variable check
Eden-D-Zhang b5bdcf1
Lint
Eden-D-Zhang 02b29fb
Merge branch 'main' of https://github.com/y-scope/clp into pyinstrume…
Eden-D-Zhang 6f65035
Clean up docstrings
Eden-D-Zhang c2be1f6
Remove __all__
Eden-D-Zhang a677177
Merge branch 'main' of https://github.com/Eden-D-Zhang/clp into pyins…
Eden-D-Zhang cc85f93
Remove unnecessary function
Eden-D-Zhang 9810d31
Address review
Eden-D-Zhang b013429
Merge branch 'main' into pyinstrument_profile
Eden-D-Zhang a33a9c1
Address review
Eden-D-Zhang 99d134b
Lint
Eden-D-Zhang 61e8332
Merge branch 'main' of https://github.com/y-scope/clp into pyinstrume…
Eden-D-Zhang ab6ee4f
Upate lock file
Eden-D-Zhang cbb32de
Update dependencies and lock file
Eden-D-Zhang 8447f12
Merge branch 'main' of https://github.com/y-scope/clp into pyinstrume…
Eden-D-Zhang 159e645
Address review
Eden-D-Zhang 4080df6
Delete file
Eden-D-Zhang 7df8e09
Merge branch 'main' into pyinstrument_profile
Eden-D-Zhang 4089eb0
Change constant name
Eden-D-Zhang 11641e2
Merge branch 'pyinstrument_profile' of https://github.com/Eden-D-Zhan…
Eden-D-Zhang 9437246
Change typing imports according to coderabbit
Eden-D-Zhang ada4073
Lint
Eden-D-Zhang e94d2cc
Add clp_logging logger, type annotations
Eden-D-Zhang 8beeda2
Merge branch 'main' of https://github.com/y-scope/clp into pyinstrume…
Eden-D-Zhang e6dfbea
Lint
Eden-D-Zhang 5501b7f
Merge branch 'pyinstrument_profile' into profile-setting
sitaowang1998 555592f
Add env for enable profiling
sitaowang1998 24d8213
Add default for CLP_ENABLE_PROFILING
sitaowang1998 3ec8d9f
Merge branch 'main' into profile-setting
sitaowang1998 e9cba89
Rename variable
sitaowang1998 344b018
Reorder env
sitaowang1998 1d9a7be
Merge branch 'main' into profile-setting
sitaowang1998 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
🧩 Analysis chain
Add field description for clarity and ensure env plumbing is present.
Document the new config knob.
class QueryWorker(BaseModel): logging_level: LoggingLevel = "INFO" - enable_profiling: bool = False + enable_profiling: bool = Field( + False, + description="Enable pyinstrument runtime profiling for query worker tasks." + )Run to confirm the plumbing from config -> env -> container:
🏁 Script executed:
Length of output: 2231
Add field description for documentation clarity.
The config → env plumbing is already correctly implemented and verified. Consider adding a Field description to document the profiling knob:
[optional_refactor_recommended]
class QueryWorker(BaseModel): logging_level: LoggingLevel = "INFO" - enable_profiling: bool = False + enable_profiling: bool = Field( + False, + description="Enable pyinstrument runtime profiling for query worker tasks." + )📝 Committable suggestion
🤖 Prompt for AI Agents