Skip to content
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

[enhancement]: Tool to profile cloud-init with cProfile #4729

Open
holmanb opened this issue Jan 3, 2024 · 0 comments
Open

[enhancement]: Tool to profile cloud-init with cProfile #4729

holmanb opened this issue Jan 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@holmanb
Copy link
Member

holmanb commented Jan 3, 2024

Enhancement

Cloud-init runs as four separate services at early runtime. This could be instrumented in our integration test suite to run cProfile within each service to make introspecting cloud-init runtime easier for developers. This can be done manually, by modifying cloud-init-local.service, cloud-init.service, cloud-config.service, and cloud-final.service, for example ExecStart=python3 -m cProfile -o cloud-init-local.prof /usr/bin/cloud-init init --local in the case of cloud-init-local.service

This could follow a similar approach to 9001f07, which modifies the service files to run cloud-init under the coverage python module (see tests/integration_tests/assets/enable_coverage.py in that commit).

@holmanb holmanb added enhancement New feature or request new An issue that still needs triage labels Jan 3, 2024
@TheRealFalcon TheRealFalcon removed the new An issue that still needs triage label Jan 3, 2024
@github-actions github-actions bot added the Stale label Sep 16, 2024
@aciba90 aciba90 removed the Stale label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants