nodejs / node-report

Delivers a human-readable diagnostic summary, written to file.
https://www.npmjs.com/package/node-report
Other
326 stars 45 forks source link

PrintResourceUsage is unimplemented on Windows #99

Closed hhellyer closed 3 years ago

hhellyer commented 7 years ago

node-report on Windows does currently obtain process or thread CPU times on Windows, the PrintResourceUsage function is unimplemented.

Most of the data could be gathered via these API's: GetProcessTimes - https://msdn.microsoft.com/en-us/library/ms683223(VS.85).aspx GetThreadTimes - https://msdn.microsoft.com/en-us/library/ms683237(VS.85).aspx

(I can't work on this myself as I don't have a Windows box. I'm not sure how high a priority Windows support for this data is.)

richardlau commented 5 years ago

We can port https://github.com/nodejs/node/pull/26406 across.