Skip to content

Snapshot take more than 7000ms when "owner" field is setup #25

Description

@fraxken

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions