Sorry for the necromancy but I think this might help future folks googling this issue... You can just run launchctl blame <pid> and it will give you the domain and label.
e.g.
% launchctl blame 8094
Unrecognized target specifier, did you mean
gui/<uid>/homebrew.mxcl.skhd
Usage: launchctl blame <service-target>
<service-target> takes a form of <domain-target>/<service-id>.
Please refer to `man launchctl` for explanation of the <domain-target> specifiers.
This works for system domain things also:
% launchctl blame 619
Unrecognized target specifier, did you mean
system/com.canonical.multipassd
Usage: launchctl blame <service-target>
<service-target> takes a form of <domain-target>/<service-id>.
Please refer to `man launchctl` for explanation of the <domain-target> specifiers.
Topic:
App & System Services
SubTopic:
Core OS
Tags: