Files
Etienne PerotandgVisor bot ed94a1dc1f 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.

PiperOrigin-RevId: 752025678
2025-04-27 09:23:18 -07:00

16 lines
286 B
Python

load("//tools:defs.bzl", "go_library")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "starttime",
srcs = [
"starttime.go",
],
visibility = ["//runsc:__subpackages__"],
deps = ["//pkg/timing"],
)