From 5430465185ba037c1f9c06cd3ec486b56dafb539 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 5 Jul 2016 13:45:54 +0100 Subject: [profile] Allow profiling to be globally enabled or disabled As with assertions, profiling is enabled for objects built with any debug level (including an explicit debug level of zero). Allow profiling to be globally enabled or disabled by adding PROFILE=1 or PROFILE=0 respectively to the build command line. Signed-off-by: Michael Brown --- src/include/ipxe/profile.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') diff --git a/src/include/ipxe/profile.h b/src/include/ipxe/profile.h index b6d2b19e0..2c69e1208 100644 --- a/src/include/ipxe/profile.h +++ b/src/include/ipxe/profile.h @@ -12,11 +12,13 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include #include +#ifndef PROFILING #ifdef NDEBUG #define PROFILING 0 #else #define PROFILING 1 #endif +#endif /** * A data structure for storing profiling information -- cgit v1.2.3-55-g7522