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. --- crossgen.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crossgen.cmake') diff --git a/crossgen.cmake b/crossgen.cmake index d377044302..8845bb5f6e 100644 --- a/crossgen.cmake +++ b/crossgen.cmake @@ -21,3 +21,7 @@ if(WIN32) add_definitions(-MT) add_definitions(-DFEATURE_READYTORUN_COMPILER) endif(WIN32) + +if(CLR_CMAKE_PLATFORM_LINUX) + add_definitions(-DFEATURE_PERFMAP) +endif(CLR_CMAKE_PLATFORM_LINUX) -- cgit v1.2.3