Skip to content

Instantly share code, notes, and snippets.

diff --git a/mono/metadata/mono-perfcounters-def.h b/mono/metadata/mono-perfcounters-def.h
index e9510d5..7c4bbfe 100644
--- a/mono/metadata/mono-perfcounters-def.h
+++ b/mono/metadata/mono-perfcounters-def.h
@@ -34,92 +34,6 @@ PERFCTR_COUNTER(ASPNET_REQ_Q, "Requests Queued", "", NumberOfItems64, aspnet_req
PERFCTR_COUNTER(ASPNET_REQ_TOTAL, "Requests Total", "", NumberOfItems32, aspnet_requests)
PERFCTR_COUNTER(ASPNET_REQ_PSEC, "Requests/Sec", "", RateOfCountsPerSecond32, aspnet_requests)
-PERFCTR_CAT(JIT, ".NET CLR JIT", "", MultiInstance, Mono, JIT_BYTES)
-PERFCTR_COUNTER(JIT_BYTES, "# of IL Bytes JITted", "", NumberOfItems32, jit_bytes)
diff --git a/mono/metadata/mono-perfcounters-def.h b/mono/metadata/mono-perfcounters-def.h
index e9510d5..7c4bbfe 100644
--- a/mono/metadata/mono-perfcounters-def.h
+++ b/mono/metadata/mono-perfcounters-def.h
@@ -34,92 +34,6 @@ PERFCTR_COUNTER(ASPNET_REQ_Q, "Requests Queued", "", NumberOfItems64, aspnet_req
PERFCTR_COUNTER(ASPNET_REQ_TOTAL, "Requests Total", "", NumberOfItems32, aspnet_requests)
PERFCTR_COUNTER(ASPNET_REQ_PSEC, "Requests/Sec", "", RateOfCountsPerSecond32, aspnet_requests)
-PERFCTR_CAT(JIT, ".NET CLR JIT", "", MultiInstance, Mono, JIT_BYTES)
-PERFCTR_COUNTER(JIT_BYTES, "# of IL Bytes JITted", "", NumberOfItems32, jit_bytes)
diff --cc mono/utils/Makefile.am
index 1a4f6ac,ec2d015..0000000
--- a/mono/utils/Makefile.am
+++ b/mono/utils/Makefile.am
@@@ -69,6 -69,6 +69,7 @@@ monoutils_sources =
monobitset.h \
mono-codeman.h \
mono-counters.h \
++ mono-counters-internals.h \
mono-digest.h \
diff --git a/mono/metadata/appdomain.c b/mono/metadata/appdomain.c
index 5b3294a..0ed1ed3 100644
--- a/mono/metadata/appdomain.c
+++ b/mono/metadata/appdomain.c
@@ -63,6 +63,7 @@
#include <mono/utils/atomic.h>
#include <mono/utils/mono-memory-model.h>
#include <mono/utils/mono-threads.h>
+#include <mono/utils/mono-counters-agent.h>
#ifdef HOST_WIN32
diff --git a/mono/mini/driver.c b/mono/mini/driver.c
index d71c077..be72e56 100644
--- a/mono/mini/driver.c
+++ b/mono/mini/driver.c
@@ -47,6 +47,7 @@
#include <mono/metadata/coree.h>
#include <mono/metadata/attach.h>
#include "mono/utils/mono-counters.h"
+#include <mono/utils/mono-counters-internals.h>
#include "mono/utils/mono-hwcap.h"
diff --git a/mono/metadata/appdomain.c b/mono/metadata/appdomain.c
index 5b3294a..0ed1ed3 100644
--- a/mono/metadata/appdomain.c
+++ b/mono/metadata/appdomain.c
@@ -63,6 +63,7 @@
#include <mono/utils/atomic.h>
#include <mono/utils/mono-memory-model.h>
#include <mono/utils/mono-threads.h>
+#include <mono/utils/mono-counters-agent.h>
#ifdef HOST_WIN32
diff --git a/mono/mini/driver.c b/mono/mini/driver.c
index d71c077..a15cdbc 100644
--- a/mono/mini/driver.c
+++ b/mono/mini/driver.c
@@ -47,6 +47,7 @@
#include <mono/metadata/coree.h>
#include <mono/metadata/attach.h>
#include "mono/utils/mono-counters.h"
+#include <mono/utils/mono-counters-internals.h>
#include "mono/utils/mono-hwcap.h"
diff --git a/mono/utils/mono-counters-agent.c b/mono/utils/mono-counters-agent.c
index 76ce467..994150e 100644
--- a/mono/utils/mono-counters-agent.c
+++ b/mono/utils/mono-counters-agent.c
@@ -18,12 +18,14 @@
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
+#include <sys/select.h>
#include "mono-counters.h"
diff --git a/mono/utils/mono-counters-agent.c b/mono/utils/mono-counters-agent.c
index a235c0a..d62d192 100644
--- a/mono/utils/mono-counters-agent.c
+++ b/mono/utils/mono-counters-agent.c
@@ -40,7 +40,7 @@ enum {
SRV_REMOTE_COUNTER,
SVR_SAMPLES,
};
-
+
diff --git a/mono/utils/mono-counters-agent.c b/mono/utils/mono-counters-agent.c
index 1befb28..b3e710d 100644
--- a/mono/utils/mono-counters-agent.c
+++ b/mono/utils/mono-counters-agent.c
@@ -40,7 +40,7 @@ enum {
SRV_REMOVE_COUNTER,
SVR_SAMPLES,
};
-
+