[ovs-git] Open vSwitch: getrusage-windows: getrusage() for Windows. (master)

dev at openvswitch.org dev at openvswitch.org
Fri Mar 7 00:35:54 UTC 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  1680d3d7e3813258f5050bb8cb10a2543c60e549 (commit)
      from  bae94bc77362b59a52c0f562e62ff96198dab9d0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1680d3d7e3813258f5050bb8cb10a2543c60e549
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=1680d3d7e3813258f5050bb8cb10a2543c60e549
Author: Gurucharan Shetty <gshetty at nicira.com>
		
getrusage-windows: getrusage() for Windows.
		
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>


-----------------------------------------------------------------------

Summary of changes:
 include/windows/automake.mk    |    1 +
 include/windows/sys/resource.h |   51 ++++++++++++++++++++++++++
 lib/automake.mk                |    1 +
 lib/getrusage-windows.c        |   78 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 131 insertions(+)
 create mode 100644 include/windows/sys/resource.h
 create mode 100644 lib/getrusage-windows.c


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list