[ovs-dev] [PATCH] timeval: getrusage() for Windows.

Ben Pfaff blp at nicira.com
Thu Mar 6 23:33:08 UTC 2014


On Thu, Mar 06, 2014 at 03:20:42PM -0800, Gurucharan Shetty wrote:
> We use getrusage mainly to get user CPU time and system CPU time.
> Windows has a GetProcessTimes and GetThreadTimes that does the
> same job. So use them.
> 
> We also use getrusage to get page faults. Use GetProcessMemoryInfo()
> for that.
> 
> We also get number of context switches, block i/o times and use it for
> debug information when we wake up from poll_block late. I haven't found
> functions for that in Windows. We only use it for debug information, so
> it should be okay not implementing it.
> 
> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
> Co-authored-by: Linda Sun <lsun at vmware.com>
> Signed-off-by: Linda Sun <lsun at vmware.com>

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list