diff options
author | Michael Brown | 2016-07-05 14:45:54 +0200 |
---|---|---|
committer | Michael Brown | 2016-07-05 14:49:51 +0200 |
commit | 5430465185ba037c1f9c06cd3ec486b56dafb539 (patch) | |
tree | b7fd666b6c4d4a8ca89692c47e886ef5daa9e3a2 /src/include | |
parent | [libc] Allow assertions to be globally enabled or disabled (diff) | |
download | ipxe-5430465185ba037c1f9c06cd3ec486b56dafb539.tar.gz ipxe-5430465185ba037c1f9c06cd3ec486b56dafb539.tar.xz ipxe-5430465185ba037c1f9c06cd3ec486b56dafb539.zip |
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ipxe/profile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/profile.h b/src/include/ipxe/profile.h index b6d2b19e..2c69e120 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 <bits/profile.h> #include <ipxe/tables.h> +#ifndef PROFILING #ifdef NDEBUG #define PROFILING 0 #else #define PROFILING 1 #endif +#endif /** * A data structure for storing profiling information |