set_process_name

Function set_process_name 

Source
pub fn set_process_name(name: impl Into<Txt>)
Expand description

Changes the process runtime name.

This sets process_name and traces an info message “pid: {pid}, name: {name}”. If the same PID is named multiple times the last name should be used when presenting the process in trace viewers.

The process name ideally should be set only by the on_process_start! “process takeover” handlers. You can use init_process_name to only set the name if it has not been set yet.