diff options
author | Steve MacLean <sdmaclea.qdt@qualcommdatacenter.com> | 2017-07-25 11:57:24 -0400 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2017-07-25 17:57:24 +0200 |
commit | fd37c5a3a4c3d9fe0932bbca7f04477b8cdf3287 (patch) | |
tree | 815f941dbf2d62ce8983e92b7a9bcdb5afe7fa9e /src/vm/codeman.cpp | |
parent | 5d105ade29742e13d036c7ba269bb6634790b6e3 (diff) | |
download | coreclr-fd37c5a3a4c3d9fe0932bbca7f04477b8cdf3287.tar.gz coreclr-fd37c5a3a4c3d9fe0932bbca7f04477b8cdf3287.tar.bz2 coreclr-fd37c5a3a4c3d9fe0932bbca7f04477b8cdf3287.zip |
PerfMap instrument stubs (#12437)
* PerfMap instrument stubs
* Perfmap fix segfault
Diffstat (limited to 'src/vm/codeman.cpp')
-rw-r--r-- | src/vm/codeman.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vm/codeman.cpp b/src/vm/codeman.cpp index 1e0cebef72..7d90ce9a5e 100644 --- a/src/vm/codeman.cpp +++ b/src/vm/codeman.cpp @@ -38,6 +38,10 @@ #include "../debug/daccess/fntableaccess.h" #endif // _WIN64 +#ifdef FEATURE_PERFMAP +#include "perfmap.h" +#endif + #define MAX_M_ALLOCATED (16 * 1024) // Default number of jump stubs in a jump stub block @@ -5054,6 +5058,10 @@ DONE: emitBackToBackJump(jumpStub, (void*) target); +#ifdef FEATURE_PERFMAP + PerfMap::LogStubs(__FUNCTION__, "emitBackToBackJump", (PCODE)jumpStub, BACK_TO_BACK_JUMP_ALLOCATE_SIZE); +#endif + // We always add the new jumpstub to the jumpStubCache // _ASSERTE(pJumpStubCache != NULL); |