Exemple #1
0
        protected override void DoAcceptManagerVisit(Object manager, DateTime managerNow)
        {
            base.DoAcceptManagerVisit(manager, managerNow);
            if (!m_InstrumentationEnabled)
            {
                return;
            }

            var instr = App.Instrumentation;

            if (!instr.Enabled)
            {
                return;
            }

            foreach (var elm in m_stat_GetHitCount.SnapshotAllLongs(0))
            {
                instr.Record(new Instrumentation.GetHitCount(elm.Key, elm.Value));
            }
            foreach (var elm in m_stat_GetFallbackHitCount.SnapshotAllLongs(0))
            {
                instr.Record(new Instrumentation.GetFallbackHitCount(elm.Key, elm.Value));
            }
            foreach (var elm in m_stat_GetMissCount.SnapshotAllLongs(0))
            {
                instr.Record(new Instrumentation.GetMissCount(elm.Key, elm.Value));
            }
            foreach (var elm in m_stat_GetTouchCount.SnapshotAllLongs(0))
            {
                instr.Record(new Instrumentation.GetTouchCount(elm.Key, elm.Value));
            }
            foreach (var elm in m_stat_PutCount.SnapshotAllLongs(0))
            {
                instr.Record(new Instrumentation.PutCount(elm.Key, elm.Value));
            }
            foreach (var elm in m_stat_DeleteHitCount.SnapshotAllLongs(0))
            {
                instr.Record(new Instrumentation.DeleteHitCount(elm.Key, elm.Value));
            }
            foreach (var elm in m_stat_DeleteFallbackCount.SnapshotAllLongs(0))
            {
                instr.Record(new Instrumentation.DeleteFallbackCount(elm.Key, elm.Value));
            }
            foreach (var elm in m_stat_DeleteMissCount.SnapshotAllLongs(0))
            {
                instr.Record(new Instrumentation.DeleteMissCount(elm.Key, elm.Value));
            }
            foreach (var elm in m_stat_ErrorCount.SnapshotAllLongs(0))
            {
                instr.Record(new Instrumentation.ErrorCount(elm.Key, elm.Value));
            }
            foreach (var elm in m_stat_MigrationCount.SnapshotAllLongs(0))
            {
                instr.Record(new Instrumentation.MigrationCount(elm.Key, elm.Value));
            }
        }
Exemple #2
0
        private void dumpStats()
        {
            var instr = App.Instrumentation;

            if (!instr.Enabled)
            {
                return;
            }


            instr.Record(new Instrumentation.LockSessions(m_Sessions.Count));

            foreach (var kvp in m_Stats.SnapshotAllLongs(0))
            {
                instr.Record(new Instrumentation.LockTransactionRequests(kvp.Key, kvp.Value));
            }
        }
Exemple #3
0
        private void dumpStats()
        {
            var i = App.Instrumentation;

            i.Record(new Instrumentation.ServerRequest(Name, m_stat_ServerRequest));
            i.Record(new Instrumentation.ServerGateDenial(Name, m_stat_ServerGateDenial));
            i.Record(new Instrumentation.ServerHandleException(Name, m_stat_ServerHandleException));
            i.Record(new Instrumentation.FilterHandleException(Name, m_stat_FilterHandleException));

            i.Record(new Instrumentation.ServerAcceptSemaphoreCount(Name, m_stat_ServerAcceptSemaphoreCount));
            i.Record(new Instrumentation.ServerWorkSemaphoreCount(Name, m_stat_ServerWorkSemaphoreCount));

            i.Record(new Instrumentation.WorkContextWrittenResponse(Name, m_stat_WorkContextWrittenResponse));
            i.Record(new Instrumentation.WorkContextBufferedResponse(Name, m_stat_WorkContextBufferedResponse));
            i.Record(new Instrumentation.WorkContextBufferedResponseBytes(Name, m_stat_WorkContextBufferedResponseBytes));
            i.Record(new Instrumentation.WorkContextCtor(Name, m_stat_WorkContextCtor));
            i.Record(new Instrumentation.WorkContextDctor(Name, m_stat_WorkContextDctor));
            i.Record(new Instrumentation.WorkContextWorkSemaphoreRelease(Name, m_stat_WorkContextWorkSemaphoreRelease));
            i.Record(new Instrumentation.WorkContextAborted(Name, m_stat_WorkContextAborted));
            i.Record(new Instrumentation.WorkContextHandled(Name, m_stat_WorkContextHandled));
            i.Record(new Instrumentation.WorkContextNoDefaultClose(Name, m_stat_WorkContextNoDefaultClose));
            i.Record(new Instrumentation.WorkContextNeedsSession(Name, m_stat_WorkContextNeedsSession));

            i.Record(new Instrumentation.SessionNew(Name, m_stat_SessionNew));
            i.Record(new Instrumentation.SessionExisting(Name, m_stat_SessionExisting));
            i.Record(new Instrumentation.SessionEnd(Name, m_stat_SessionEnd));
            i.Record(new Instrumentation.SessionInvalidID(Name, m_stat_SessionInvalidID));

            i.Record(new Instrumentation.GeoLookup(Name, m_stat_GeoLookup));
            i.Record(new Instrumentation.GeoLookupHit(Name, m_stat_GeoLookupHit));

            foreach (var kvp in m_stat_PortalRequest.SnapshotAllLongs(0))
            {
                i.Record(new Instrumentation.ServerPortalRequest(Name + "." + kvp.Key, kvp.Value));
            }

            var sample = (int)m_stat_WorkContextBufferedResponseBytes;

            if (sample != 0)
            {
                ExternalRandomGenerator.Instance.FeedExternalEntropySample(sample);
            }
        }