Skip to main content

build_cgroup_sampler_start_snippet

Function build_cgroup_sampler_start_snippet 

Source
pub fn build_cgroup_sampler_start_snippet(container_name: &str) -> String
Expand description

Shell fragment starting the background sampler. It writes each sample to a temp file with mv, so the watcher never reads a half-written line, and ends by itself once the cgroup is gone.