Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

Commit 46c82b9

Browse files
committed
re-enable COR_PRF_DISABLE_ALL_NGEN_IMAGES to ignore all NGENd images (even NGEN /Profile images) #188
1 parent 29e7f8b commit 46c82b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main/OpenCover.Profiler/CodeCoverage.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ HRESULT STDMETHODCALLTYPE CCodeCoverage::Initialize(
116116
if (m_profilerInfo4 != NULL)
117117
{
118118
ATLTRACE(_T(" ::Initialize (m_profilerInfo4 OK)"));
119-
//dwMask |= COR_PRF_ENABLE_REJIT;
120-
//dwMask |= COR_PRF_DISABLE_ALL_NGEN_IMAGES;
119+
dwMask |= COR_PRF_DISABLE_ALL_NGEN_IMAGES;
121120
}
122121
#endif
123122
COM_FAIL_MSG_RETURN_ERROR(m_profilerInfo2->SetEventMask(dwMask),

0 commit comments

Comments
 (0)