[Mono-dev] [PATCH] Network Performance Counters

Joel Reed joelwreed at gmail.com
Mon Sep 28 22:11:54 EDT 2009


The attached patch implements 3 "Network Interface" performance category 
counters. The counters are "Bytes Received/sec", "Bytes Sent/sec", and 
"Bytes Total/sec". A sample program using these counters and sample 
output is attached as well.

This information is obtained by reading /proc/net/dev.

The patch changes the following files:

mono/metadata/ChangeLog
mono/metadata/mono-perfcounters-def.h
mono/metadata/mono-perfcounters.c
mono/utils/ChangeLog
mono/utils/mono-proclib.c
mono/utils/mono-proclib.h

jr


-------------- next part --------------
A non-text attachment was scrubbed...
Name: network-perfcounters.v1.patch
Type: text/x-patch
Size: 10211 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090928/d1553206/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PerfMon.cs
Type: text/x-csharp
Size: 2124 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090928/d1553206/attachment-0001.bin 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: output.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090928/d1553206/attachment.txt 


More information about the Mono-devel-list mailing list