From 3801b5493e9d4b8837ceec03f49707656877fff1 Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Mon, 9 Nov 2015 17:50:56 -0800 Subject: Enable offline generation of text-based symbol tables for native images. This is needed in order to profile applications on Linux using perf_event. This change also modifies the runtime to emit a perfmap entry when a native image is loaded so that offline trace processing tools can identify when a perfmap file for a native image is needed and generate it. --- src/vm/prestub.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vm/prestub.cpp') diff --git a/src/vm/prestub.cpp b/src/vm/prestub.cpp index 06d1967313..1889fbcec2 100644 --- a/src/vm/prestub.cpp +++ b/src/vm/prestub.cpp @@ -522,7 +522,7 @@ PCODE MethodDesc::MakeJitWorker(COR_ILMETHOD_DECODER* ILHeader, DWORD flags, DWO #ifdef FEATURE_PERFMAP // Save the JIT'd method information so that perf can resolve JIT'd call frames. - PerfMap::LogMethod(this, pCode, sizeOfCode); + PerfMap::LogJITCompiledMethod(this, pCode, sizeOfCode); #endif mcJitManager.GetMulticoreJitCodeStorage().StoreMethodCode(this, pCode); @@ -606,7 +606,7 @@ GotNewCode: #ifdef FEATURE_PERFMAP // Save the JIT'd method information so that perf can resolve JIT'd call frames. - PerfMap::LogMethod(this, pCode, sizeOfCode); + PerfMap::LogJITCompiledMethod(this, pCode, sizeOfCode); #endif } -- cgit v1.2.3