15 Aug 00:51
[PATCH] Enable reading of the ASP.NET Requests Queued counter from external process
From: Marek Habersack <grendel <at> twistedcode.net>
Subject: [PATCH] Enable reading of the ASP.NET Requests Queued counter from external process
Newsgroups: gmane.comp.gnome.mono.devel
Date: 2008-08-14 22:54:49 GMT
Subject: [PATCH] Enable reading of the ASP.NET Requests Queued counter from external process
Newsgroups: gmane.comp.gnome.mono.devel
Date: 2008-08-14 22:54:49 GMT
Hello everybody, The attached patch implements reading the counter mentioned in the subject when using a named instance (on Unix it's a process ID). Please review, best, marek
Index: mono/metadata/mono-perfcounters.c
===================================================================
--- mono/metadata/mono-perfcounters.c (revision 110495)
+++ mono/metadata/mono-perfcounters.c (working copy)
@@ -847,6 +847,13 @@
return TRUE;
}
break;
+
+ case CATEGORY_ASPNET:
+ switch (id) {
+ case COUNTER_ASPNET_REQ_Q:
+ sample->rawValue = vt->counters->aspnet_requests_queued;
+ return TRUE;
+ }
}
return FALSE;
}
(Continue reading)
RSS Feed