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