ManagedProcess managedProcess) throws Exception {
if (Utils.isLinux()) {
return new LinuxProcessMetricsProcessor(logger, process, agent, "/proc/" + process.getPID()
+ "/statm", "/proc/stat", "/proc/" + process.getPID() + "/stat", managedProcess);
} else {
return new DefaultProcessMetricsProcessor(process, agent);
}
}