summaryrefslogtreecommitdiff
path: root/src/zap/zapreadytorun.cpp
diff options
context:
space:
mode:
authorBrian Sullivan <briansul@microsoft.com>2017-03-07 18:58:11 -0800
committerBrian Sullivan <briansul@microsoft.com>2017-03-13 12:45:14 -0700
commitc67474bd34847bf5ceff3d49f29eb4b778848748 (patch)
treeca4220191ea1fcc24361c023cfeb4fd55544ae54 /src/zap/zapreadytorun.cpp
parenta7bed220d5455a705452eb0cc7248b941a6ecd99 (diff)
downloadcoreclr-c67474bd34847bf5ceff3d49f29eb4b778848748.tar.gz
coreclr-c67474bd34847bf5ceff3d49f29eb4b778848748.tar.bz2
coreclr-c67474bd34847bf5ceff3d49f29eb4b778848748.zip
Work for IBC profiling with ReadyToRun images
Incremented ReadyToRun version to 2.2 Implemented caching for IsInstrumented using IS_INSTRUMENTED_UNSET Added method Module::InitializeForProfiling() Added full support for method profile counts in ReadyToRun image
Diffstat (limited to 'src/zap/zapreadytorun.cpp')
-rw-r--r--src/zap/zapreadytorun.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zap/zapreadytorun.cpp b/src/zap/zapreadytorun.cpp
index 8ed3f55159..e67f9d3ee1 100644
--- a/src/zap/zapreadytorun.cpp
+++ b/src/zap/zapreadytorun.cpp
@@ -389,6 +389,14 @@ void ZapImage::OutputInliningTableForReadyToRun()
GetReadyToRunHeader()->RegisterSection(READYTORUN_SECTION_INLINING_INFO, pBlob);
}
+void ZapImage::OutputProfileDataForReadyToRun()
+{
+ if (m_pInstrumentSection != nullptr)
+ {
+ GetReadyToRunHeader()->RegisterSection(READYTORUN_SECTION_PROFILEDATA_INFO, m_pInstrumentSection);
+ }
+}
+
void ZapImage::OutputTypesTableForReadyToRun(IMDInternalImport * pMDImport)
{
NativeWriter writer;