Skip to content

[tool] refactor: Unify the profiler tools in one place#5573

Open
zhink wants to merge 2 commits intoverl-project:mainfrom
zhink:main
Open

[tool] refactor: Unify the profiler tools in one place#5573
zhink wants to merge 2 commits intoverl-project:mainfrom
zhink:main

Conversation

@zhink
Copy link

@zhink zhink commented Mar 12, 2026

What does this PR do?
As title

@CLAassistant
Copy link

CLAassistant commented Mar 12, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a PROFILER_TOOL_NAMES constant to unify the handling of profiler tool names. The hardcoded lists of profiler names in env_worker.py, engine_workers.py, fsdp_workers.py, and megatron_workers.py have been replaced with this new constant. The constant is defined in verl/utils/profiler/config.py and exported through verl/utils/profiler/__init__.py. The changes appear correct and serve to centralize the configuration.

@zhink zhink changed the title [tool] refactor: Unify the profiler tool in one place [tool] refactor: Unify the profiler tools in one place Mar 12, 2026
@zhink
Copy link
Author

zhink commented Mar 13, 2026

@ArronHZG please review its

ArronHZG
ArronHZG previously approved these changes Mar 13, 2026
Copy link
Collaborator

@ArronHZG ArronHZG left a comment

Choose a reason for hiding this comment

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

Looks good.

@ArronHZG
Copy link
Collaborator

Please run pre-commit run --all-files.

@zhink
Copy link
Author

zhink commented Mar 14, 2026

Please run pre-commit run --all-files.

done

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants