209 references to IsEnabled
mscorlib (141)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (24)
115if (PinnableBufferCacheEventSource.Log.IsEnabled()) 155if (PinnableBufferCacheEventSource.Log.IsEnabled()) 160if (PinnableBufferCacheEventSource.Log.IsEnabled()) 224if (PinnableBufferCacheEventSource.Log.IsEnabled() && GC.GetGeneration(returnBuffer) < GC.MaxGeneration) 613public void DebugMessage(string message) { if (IsEnabled()) WriteEvent(1, message); } 615public void DebugMessage1(string message, long value) { if (IsEnabled()) WriteEvent(2, message, value); } 617public void DebugMessage2(string message, long value1, long value2) { if (IsEnabled()) WriteEvent(3, message, value1, value2); } 619public void DebugMessage3(string message, long value1, long value2, long value3) { if (IsEnabled()) WriteEvent(18, message, value1, value2, value3); } 622public void Create(string cacheName) { if (IsEnabled()) WriteEvent(4, cacheName); } 625public void AllocateBuffer(string cacheName, ulong objectId, int objectHash, int objectGen, int freeCountAfter) { if (IsEnabled()) WriteEvent(5, cacheName, objectId, objectHash, objectGen, freeCountAfter); } 627public void AllocateBufferFromNotGen2(string cacheName, int notGen2CountAfter) { if (IsEnabled()) WriteEvent(6, cacheName, notGen2CountAfter); } 629public void AllocateBufferCreatingNewBuffers(string cacheName, int totalBuffsBefore, int objectCount) { if (IsEnabled()) WriteEvent(7, cacheName, totalBuffsBefore, objectCount); } 631public void AllocateBufferAged(string cacheName, int agedCount) { if (IsEnabled()) WriteEvent(8, cacheName, agedCount); } 633public void AllocateBufferFreeListEmpty(string cacheName, int notGen2CountBefore) { if (IsEnabled()) WriteEvent(9, cacheName, notGen2CountBefore); } 636public void FreeBuffer(string cacheName, ulong objectId, int objectHash, int freeCountBefore) { if (IsEnabled()) WriteEvent(10, cacheName, objectId, objectHash, freeCountBefore); } 638public void FreeBufferStillTooYoung(string cacheName, int notGen2CountBefore) { if (IsEnabled()) WriteEvent(11, cacheName, notGen2CountBefore); } 641public void TrimCheck(string cacheName, int totalBuffs, bool neededMoreThanFreeList, int deltaMSec) { if (IsEnabled()) WriteEvent(13, cacheName, totalBuffs, neededMoreThanFreeList, deltaMSec); } 643public void TrimFree(string cacheName, int totalBuffs, int freeListCount, int toBeFreed) { if (IsEnabled()) WriteEvent(14, cacheName, totalBuffs, freeListCount, toBeFreed); } 645public void TrimExperiment(string cacheName, int totalBuffs, int freeListCount, int numTrimTrial) { if (IsEnabled()) WriteEvent(15, cacheName, totalBuffs, freeListCount, numTrimTrial); } 647public void TrimFreeSizeOK(string cacheName, int totalBuffs, int freeListCount) { if (IsEnabled()) WriteEvent(16, cacheName, totalBuffs, freeListCount); } 649public void TrimFlush(string cacheName, int totalBuffs, int freeListCount, int notGen2CountBefore) { if (IsEnabled()) WriteEvent(17, cacheName, totalBuffs, freeListCount, notGen2CountBefore); } 651public void AgePendingBuffersResults(string cacheName, int promotedToFreeListCount, int heldBackCount) { if (IsEnabled()) WriteEvent(20, cacheName, promotedToFreeListCount, heldBackCount); } 653public void WalkFreeListResult(string cacheName, int freeListCount, int gen0BuffersInFreeList) { if (IsEnabled()) WriteEvent(21, cacheName, freeListCount, gen0BuffersInFreeList); } 655public void FreeBufferNull(string cacheName, int freeCountBefore) { if(IsEnabled()) WriteEvent(22, cacheName, freeCountBefore); }
system\Collections\Concurrent\ConcurrentDictionary.cs (1)
1966if (CDSCollectionETWBCLProvider.Log.IsEnabled())
system\Collections\Concurrent\ConcurrentStack.cs (3)
463if (CDSCollectionETWBCLProvider.Log.IsEnabled()) 690if (count == 1 && CDSCollectionETWBCLProvider.Log.IsEnabled()) 709if (count == 1 && CDSCollectionETWBCLProvider.Log.IsEnabled())
system\diagnostics\eventing\eventsource.cs (2)
1329/// method signature. Even if you use this for rare events, this call should be guarded by an <see cref="IsEnabled()"/> 1344/// particular method signature. Even if you use this for rare events, this call should be guarded by an <see cref="IsEnabled()"/>
system\diagnostics\eventing\frameworkeventsource.cs (55)
96if (IsEnabled()) 120if (IsEnabled()) 142if (IsEnabled()) 166if (IsEnabled()) 184if (IsEnabled()) 208if (IsEnabled()) 214if (IsEnabled()) 223if (IsEnabled()) 230if (IsEnabled()) 237if (IsEnabled()) 243if (IsEnabled()) 249if (IsEnabled()) 255if (IsEnabled()) 261if (IsEnabled()) 268if (IsEnabled()) 275if (IsEnabled()) 281if (IsEnabled()) 287if (IsEnabled()) 293if (IsEnabled()) 299if (IsEnabled()) 305if (IsEnabled()) 311if (IsEnabled()) 317if (IsEnabled()) 323if (IsEnabled()) 329if (IsEnabled()) 335if (IsEnabled()) 344if (IsEnabled()) 350if (IsEnabled()) 356if (IsEnabled()) 362if (IsEnabled()) 368if (IsEnabled()) 374if (IsEnabled()) 380if (IsEnabled()) 386if (IsEnabled()) 392if (IsEnabled()) 398if (IsEnabled()) 404if (IsEnabled()) 410if (IsEnabled()) 416if (IsEnabled()) 422if (IsEnabled()) 428if (IsEnabled()) 434if (IsEnabled()) 440if (IsEnabled()) 446if (IsEnabled()) 452if (IsEnabled()) 458if (IsEnabled()) 464if (IsEnabled()) 470if (IsEnabled()) 532if (IsEnabled()) 538if (IsEnabled()) 544if (IsEnabled()) 550if (IsEnabled()) 563if (IsEnabled()) 583if (IsEnabled()) 603if (IsEnabled())
System\Diagnostics\Eventing\TraceLogging\EventSourceActivity.cs (1)
242if (!this.eventSource.IsEnabled())
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (8)
114if (!this.IsEnabled()) 143if (!this.IsEnabled()) 176if (!this.IsEnabled()) 214if (!this.IsEnabled()) 253if (!this.IsEnabled()) 301if (!this.IsEnabled()) 353if (!this.IsEnabled()) 511if (!this.IsEnabled())
system\resources\resourcemanager.cs (3)
338if (FrameworkEventSource.IsInitialized && FrameworkEventSource.Log.IsEnabled()) { 519if (FrameworkEventSource.IsInitialized && FrameworkEventSource.Log.IsEnabled()) { 1498if (FrameworkEventSource.IsInitialized && FrameworkEventSource.Log.IsEnabled()) {
system\runtime\compilerservices\TaskAwaiter.cs (3)
216if ( TplEtwProvider.Log.IsEnabled() || Task.s_asyncDebuggingEnabled) 243if (etwLog.IsEnabled()) 271bool bEtwLogEnabled = etwLog.IsEnabled();
system\runtime\compilerservices\YieldAwaitable.cs (1)
90if (TplEtwProvider.Log.IsEnabled())
system\threading\SpinLock.cs (1)
308if (CdsSyncEtwBCLProvider.Log.IsEnabled())
system\threading\Tasks\Parallel.cs (14)
251if (TplEtwProvider.Log.IsEnabled()) 406if (TplEtwProvider.Log.IsEnabled()) 1097if (TplEtwProvider.Log.IsEnabled()) 1151if (TplEtwProvider.Log.IsEnabled()) 1254if (TplEtwProvider.Log.IsEnabled()) 1310if (TplEtwProvider.Log.IsEnabled()) 1412if (TplEtwProvider.Log.IsEnabled()) 1464if (TplEtwProvider.Log.IsEnabled()) 1567if (TplEtwProvider.Log.IsEnabled()) 1623if (TplEtwProvider.Log.IsEnabled()) 3226if (TplEtwProvider.Log.IsEnabled()) 3289if (TplEtwProvider.Log.IsEnabled()) 3452if (TplEtwProvider.Log.IsEnabled()) 3534if (TplEtwProvider.Log.IsEnabled())
system\threading\Tasks\Task.cs (4)
978if (etwLog.IsEnabled() && (m_stateFlags & Task.TASK_STATE_TASKSCHEDULED_WAS_FIRED) == 0) 2780bool etwIsEnabled = etwLog.IsEnabled(); 3228bool etwIsEnabled = etwLog.IsEnabled(); 4692if (etwLog.IsEnabled())
system\threading\Tasks\TaskContinuation.cs (4)
425if (etwLog.IsEnabled()) 619if (etwLog.IsEnabled()) 706if (m_capturedContext == null && !TplEtwProvider.Log.IsEnabled() 830if (etwLog.IsEnabled() && task != null)
system\threading\Tasks\TPLETWProvider.cs (17)
230if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.Parallel)) 273if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.Parallel)) 312if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.Parallel)) 350if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.Parallel)) 372if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.Parallel)) 392if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.Parallel)) 426if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.TaskTransfer|Keywords.Tasks)) 524if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.TaskTransfer|Keywords.Tasks)) 564if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.Tasks)) 579if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.Tasks)) 594if (IsEnabled() && IsEnabled(EventLevel.Verbose, Keywords.Tasks)) 611if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.TaskTransfer|Keywords.Tasks)) 638if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityOperation)) 664if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityRelation)) 673if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalityOperation)) 682if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork)) 691if (IsEnabled() && IsEnabled(EventLevel.Informational, Keywords.AsyncCausalitySynchronousWork))
System (62)
net\System\Net\_Connection.cs (3)
508if (PinnableBufferCacheEventSource.Log.IsEnabled()) 517if (PinnableBufferCacheEventSource.Log.IsEnabled()) 537if (PinnableBufferCacheEventSource.Log.IsEnabled()) {
net\System\Net\filewebrequest.cs (4)
249if (FrameworkEventSource.Log.IsEnabled()) { 283if (FrameworkEventSource.Log.IsEnabled()) { 322if (FrameworkEventSource.Log.IsEnabled()) { 359if (FrameworkEventSource.Log.IsEnabled()) {
net\System\Net\FtpWebRequest.cs (12)
558if (FrameworkEventSource.Log.IsEnabled()) { 674if (FrameworkEventSource.Log.IsEnabled()) { 700if (FrameworkEventSource.Log.IsEnabled()) { 789if (FrameworkEventSource.Log.IsEnabled()) { 856if (FrameworkEventSource.Log.IsEnabled()) { 868if (FrameworkEventSource.Log.IsEnabled()) { 884if (FrameworkEventSource.Log.IsEnabled()) { 940if (FrameworkEventSource.Log.IsEnabled()) { 993if (FrameworkEventSource.Log.IsEnabled()){ 1051if (FrameworkEventSource.Log.IsEnabled()) { 2231if (FrameworkEventSource.Log.IsEnabled() && webException != null && webException.Response != null) { 2255if (FrameworkEventSource.Log.IsEnabled() && ftpWebResponse != null) {
net\System\Net\HttpWebRequest.cs (9)
1439if (FrameworkEventSource.Log.IsEnabled()) 1504if (FrameworkEventSource.Log.IsEnabled()) { 1528if (FrameworkEventSource.Log.IsEnabled()) { 1621if (FrameworkEventSource.Log.IsEnabled()) { 2036if (FrameworkEventSource.Log.IsEnabled()) { 2101if (FrameworkEventSource.Log.IsEnabled()) { 2150if (FrameworkEventSource.Log.IsEnabled()) { 2296if (FrameworkEventSource.Log.IsEnabled()) { 6308if (FrameworkEventSource.Log.IsEnabled() && httpWebResponse != null) {
net\System\Net\SecureProtocols\_SslStream.cs (9)
65if (PinnableBufferCacheEventSource.Log.IsEnabled()) 88if (PinnableBufferCacheEventSource.Log.IsEnabled()) 96if (PinnableBufferCacheEventSource.Log.IsEnabled()) 270if (PinnableBufferCacheEventSource.Log.IsEnabled()) 279if (PinnableBufferCacheEventSource.Log.IsEnabled()) 561if (PinnableBufferCacheEventSource.Log.IsEnabled()) 568if (PinnableBufferCacheEventSource.Log.IsEnabled()) 593if (PinnableBufferCacheEventSource.Log.IsEnabled()) 632if (PinnableBufferCacheEventSource.Log.IsEnabled())
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (24)
115if (PinnableBufferCacheEventSource.Log.IsEnabled()) 155if (PinnableBufferCacheEventSource.Log.IsEnabled()) 160if (PinnableBufferCacheEventSource.Log.IsEnabled()) 224if (PinnableBufferCacheEventSource.Log.IsEnabled() && GC.GetGeneration(returnBuffer) < GC.MaxGeneration) 613public void DebugMessage(string message) { if (IsEnabled()) WriteEvent(1, message); } 615public void DebugMessage1(string message, long value) { if (IsEnabled()) WriteEvent(2, message, value); } 617public void DebugMessage2(string message, long value1, long value2) { if (IsEnabled()) WriteEvent(3, message, value1, value2); } 619public void DebugMessage3(string message, long value1, long value2, long value3) { if (IsEnabled()) WriteEvent(18, message, value1, value2, value3); } 622public void Create(string cacheName) { if (IsEnabled()) WriteEvent(4, cacheName); } 625public void AllocateBuffer(string cacheName, ulong objectId, int objectHash, int objectGen, int freeCountAfter) { if (IsEnabled()) WriteEvent(5, cacheName, objectId, objectHash, objectGen, freeCountAfter); } 627public void AllocateBufferFromNotGen2(string cacheName, int notGen2CountAfter) { if (IsEnabled()) WriteEvent(6, cacheName, notGen2CountAfter); } 629public void AllocateBufferCreatingNewBuffers(string cacheName, int totalBuffsBefore, int objectCount) { if (IsEnabled()) WriteEvent(7, cacheName, totalBuffsBefore, objectCount); } 631public void AllocateBufferAged(string cacheName, int agedCount) { if (IsEnabled()) WriteEvent(8, cacheName, agedCount); } 633public void AllocateBufferFreeListEmpty(string cacheName, int notGen2CountBefore) { if (IsEnabled()) WriteEvent(9, cacheName, notGen2CountBefore); } 636public void FreeBuffer(string cacheName, ulong objectId, int objectHash, int freeCountBefore) { if (IsEnabled()) WriteEvent(10, cacheName, objectId, objectHash, freeCountBefore); } 638public void FreeBufferStillTooYoung(string cacheName, int notGen2CountBefore) { if (IsEnabled()) WriteEvent(11, cacheName, notGen2CountBefore); } 641public void TrimCheck(string cacheName, int totalBuffs, bool neededMoreThanFreeList, int deltaMSec) { if (IsEnabled()) WriteEvent(13, cacheName, totalBuffs, neededMoreThanFreeList, deltaMSec); } 643public void TrimFree(string cacheName, int totalBuffs, int freeListCount, int toBeFreed) { if (IsEnabled()) WriteEvent(14, cacheName, totalBuffs, freeListCount, toBeFreed); } 645public void TrimExperiment(string cacheName, int totalBuffs, int freeListCount, int numTrimTrial) { if (IsEnabled()) WriteEvent(15, cacheName, totalBuffs, freeListCount, numTrimTrial); } 647public void TrimFreeSizeOK(string cacheName, int totalBuffs, int freeListCount) { if (IsEnabled()) WriteEvent(16, cacheName, totalBuffs, freeListCount); } 649public void TrimFlush(string cacheName, int totalBuffs, int freeListCount, int notGen2CountBefore) { if (IsEnabled()) WriteEvent(17, cacheName, totalBuffs, freeListCount, notGen2CountBefore); } 651public void AgePendingBuffersResults(string cacheName, int promotedToFreeListCount, int heldBackCount) { if (IsEnabled()) WriteEvent(20, cacheName, promotedToFreeListCount, heldBackCount); } 653public void WalkFreeListResult(string cacheName, int freeListCount, int gen0BuffersInFreeList) { if (IsEnabled()) WriteEvent(21, cacheName, freeListCount, gen0BuffersInFreeList); } 655public void FreeBufferNull(string cacheName, int freeCountBefore) { if(IsEnabled()) WriteEvent(22, cacheName, freeCountBefore); }
sys\system\threading\Barrier.cs (1)
683if (CdsSyncEtwBCLProvider.Log.IsEnabled())
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
6351if (SqlEventSource.Log.IsEnabled() && Connection != null) 6366if (SqlEventSource.Log.IsEnabled())
System.Web (4)
AspNetEventSource.cs (3)
52if (!IsEnabled()) { 105if (!IsEnabled()) { 164if (!IsEnabled()) {
RootedObjects.cs (1)
48_activityIdTracingIsEnabled = ActivityIdHelper.Instance != null && AspNetEventSource.Instance.IsEnabled();