MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / process_role

Function process_role

packages/server/src/performance.rs:620–630  ·  view source on GitHub ↗
(command: &str)

Source from the content-addressed store, hash-verified

618}
619
620fn process_role(command: &str) -> String {
621 if command.contains(".appex/") {
622 "extension".to_owned()
623 } else if command.contains("WebContent") {
624 "web-content".to_owned()
625 } else if command.contains(".app/") {
626 "app".to_owned()
627 } else {
628 "helper".to_owned()
629 }
630}
631
632fn process_name_from_command(command: &str) -> String {
633 let executable = command

Callers 1

performance_processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected