Skip to content

starttime: Get process start time from /proc/self/status if possible. #11598

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

Merged
merged 1 commit into from
Apr 27, 2025

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Mar 29, 2025

starttime: Get process start time from /proc/self/status if possible.

This more accurately determines when the process was started, since it is not
affected by the overhead of running linked library init code and
initializing runsc's CLI code.

Additionally, when runsc execs itself, preserve this time across the exec.

Also move the code that determines the start time earlier in the file.

@copybara-service copybara-service bot added the exported Issue was exported automatically label Mar 29, 2025
…ble.

This more accurately determines when the process was started, since it is not
affected by the overhead of running linked library `init` code and
initializing `runsc`'s CLI code.

Additionally, when `runsc` execs itself, preserve this time across the exec.

Also move the code that determines the start time earlier in the file.

PiperOrigin-RevId: 752025678
@copybara-service copybara-service bot merged commit 58415ad into master Apr 27, 2025
1 of 3 checks passed
@copybara-service copybara-service bot deleted the test/cl741311782 branch April 27, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exported Issue was exported automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant