Prior to this change, the log files each have their own timestamp computed
independently. For example, this means that the coverage log file, the panic
log file, the debug log file, the first Gofer's log file, and the profile
files for the same Sentry may all have different timestamps in their
filenames. Now they are the same.
This change introduces a central `runsc/starttime` package for which the sole
purpose is to hold the start time of the `runsc` process, for easy plumbing
in all places that need it.
PiperOrigin-RevId: 646667986
Previously, when passing --profile and related profile flags to runsc, we only
created profile files for the sentry. The gofer was ignored.
This CL plumbs profile flags to the gofer, and creates profile files for the
gofer as well.
For now, the gofer profiles are put in separate files from the sentry profile.
The gofer profile files are suffixed with "gofer" and the container id, to
avoid collision with the sentry profiles and profiles from other gofers (since
each container has its own gofer).
In a future CL, the gofer profile data will be merged with the sentry profile
data into a single file.
PiperOrigin-RevId: 469794523