Unverified Commit f5608f2b authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[devicelab] track any leaked processes (#68218)

parent 27936e9f
......@@ -85,6 +85,7 @@ class _TaskRunner {
final Set<RunningProcessInfo> beforeRunningDartInstances = await getRunningProcesses(
processName: 'dart$exe',
).toSet();
final Set<RunningProcessInfo> allProcesses = await getRunningProcesses().toSet();
beforeRunningDartInstances.forEach(print);
print('enabling configs for macOS, Linux, Windows, and Web...');
......@@ -123,6 +124,13 @@ class _TaskRunner {
}
}
}
final Set<RunningProcessInfo> allEndProcesses = await getRunningProcesses().toSet();
for (final RunningProcessInfo info in allEndProcesses) {
if (allProcesses.contains(info)) {
continue;
}
print('[LEAK]: ${info.commandLine} ${info.creationDate} ${info.pid} ');
}
_completer.complete(result);
return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment