Hi,
After few tests on my Windows. When i setup the field "owner" it take more than 7,000ms for the snapshot method to be achieved. I have not tested the UNIX version yet to look if this a problem only related to the Windows platform.
Code example
const { snapshot } = require("process-list");
const fieldsToRetrieve = new Set([
"name",
"owner"
]);
async function main() {
console.time("exec");
const tasks = await snapshot(...fieldsToRetrieve);
console.timeEnd("exec");
}
main().catch(console.error);
stdout
λ node index
exec: 7939.677ms
All others fields are well retrieved !
Best Regards,
Thomas