From 9aa4640792bd99b232abfe826b0cb0ae72f6644a Mon Sep 17 00:00:00 2001 From: Wouter Klouwen Date: Sat, 2 Feb 2019 09:06:36 +0000 Subject: cmake: add command line options to output script profiling data For users of CMake who want to optimize their scripts if they take a while to run, this commit adds the ability to output profiling data. To enable this output, it adds the two command line parameters to select the output path and format. This commit adds the first profiling format of type ``google-trace``, which is the output is a JSON file containing Duration events as per the Google Trace Format specification: https://docs.google.com/document/d/1CvAClvFfyA5R- PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview# --- Source/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/CMakeLists.txt') diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 24370aa793..467abe9b65 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -354,6 +354,7 @@ set(SRCS cmMakefileTargetGenerator.cxx cmMakefileExecutableTargetGenerator.cxx cmMakefileLibraryTargetGenerator.cxx + cmMakefileProfilingData.cxx cmMakefileUtilityTargetGenerator.cxx cmMessageType.h cmMessenger.cxx -- cgit v1.2.1