pub fn set_current_thread_name(name: &str)Available on crate feature
process only.Expand description
Sets the OS-level name of the calling thread, visible to tools like top -H, perf,
samply, and /proc/<pid>/task/*/comm.
Linux truncates thread names to 15 bytes (16 with the NUL terminator); name is truncated to
fit. Best-effort: a no-op on non-Linux platforms, and silently does nothing if the underlying
syscall fails.