diff options
author | Sung Yoon Whang <suwhang@microsoft.com> | 2019-02-21 17:48:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-21 17:48:48 -0800 |
commit | 521e73c0031c84297088381688d464ce619156a9 (patch) | |
tree | cf5ee523a5f1135b6c0f5294c606f071167dba45 /src/vm/exceptionhandling.cpp | |
parent | 2c10ccaefa48d3418d1fc4fbc4f49eee5745b623 (diff) | |
download | coreclr-521e73c0031c84297088381688d464ce619156a9.tar.gz coreclr-521e73c0031c84297088381688d464ce619156a9.tar.bz2 coreclr-521e73c0031c84297088381688d464ce619156a9.zip |
Add exception counter (#22734)
* Add exception counter
* Fix build
* Make FCall return UINT32
* Move GetExceptionCount to Exception
* more PR comments, fix x86 build
* Remove global variable initialization
Diffstat (limited to 'src/vm/exceptionhandling.cpp')
-rw-r--r-- | src/vm/exceptionhandling.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vm/exceptionhandling.cpp b/src/vm/exceptionhandling.cpp index 7950182c46..6b337bdac4 100644 --- a/src/vm/exceptionhandling.cpp +++ b/src/vm/exceptionhandling.cpp @@ -128,6 +128,7 @@ static void DoEHLog(DWORD lvl, __in_z const char *fmt, ...); #endif TrackerAllocator g_theTrackerAllocator; +uint32_t g_exceptionCount; bool FixNonvolatileRegisters(UINT_PTR uOriginalSP, Thread* pThread, @@ -197,6 +198,7 @@ void FreeTrackerMemory(ExceptionTracker* pTracker, TrackerMemoryType mem) static inline void UpdatePerformanceMetrics(CrawlFrame *pcfThisFrame, BOOL bIsRethrownException, BOOL bIsNewException) { WRAPPER_NO_CONTRACT; + g_exceptionCount++; // Fire an exception thrown ETW event when an exception occurs ETW::ExceptionLog::ExceptionThrown(pcfThisFrame, bIsRethrownException, bIsNewException); |