Skip to main content

process_start_token

Function process_start_token 

Source
pub fn process_start_token(pid: u32) -> Option<String>
Expand description

Layer 2’s reading: an opaque, platform-local token for when pid’s process started.

Compared only by string equality against a token read freshly on the same machine. Nothing converts between platform encodings and nothing parses either one, so the two readings below never have to be reconciled.

PlatformToken
Linuxfield 22 of /proc/<pid>/stat, clock ticks since boot
macOSproc_bsdinfo.pbi_start_tvsec / pbi_start_tvusec, as seconds.microseconds