diff --git a/AK/Debug.h.in b/AK/Debug.h.in index d816baa4e91afb4..8c760cf54301920 100644 --- a/AK/Debug.h.in +++ b/AK/Debug.h.in @@ -218,6 +218,10 @@ #cmakedefine01 JOB_DEBUG #endif +#ifndef SHELL_JOB_DEBUG +#cmakedefine01 SHELL_JOB_DEBUG +#endif + #ifndef JPG_DEBUG #cmakedefine01 JPG_DEBUG #endif diff --git a/Meta/CMake/all_the_debug_macros.cmake b/Meta/CMake/all_the_debug_macros.cmake index caf4655dcca5b81..d9480516f1d39ac 100644 --- a/Meta/CMake/all_the_debug_macros.cmake +++ b/Meta/CMake/all_the_debug_macros.cmake @@ -57,6 +57,7 @@ set(CRYPTO_DEBUG ON) set(DWARF_DEBUG ON) set(HUNKS_DEBUG ON) set(JOB_DEBUG ON) +set(SHELL_JOB_DEBUG ON) set(GIF_DEBUG ON) set(JPG_DEBUG ON) set(EMOJI_DEBUG ON) diff --git a/Userland/Shell/Job.h b/Userland/Shell/Job.h index 6d8acecf4f7bef5..1512c5d2ae322e7 100644 --- a/Userland/Shell/Job.h +++ b/Userland/Shell/Job.h @@ -8,6 +8,7 @@ #include "Execution.h" #include "Forward.h" +#include #include #include #include @@ -16,11 +17,6 @@ #include #include -#define JOB_TIME_INFO -#ifndef __serenity__ -# undef JOB_TIME_INFO -#endif - namespace Shell { struct LocalFrame; @@ -31,7 +27,7 @@ class Job : public RefCounted { ~Job() { -#ifdef JOB_TIME_INFO +#if SHELL_JOB_DEBUG if (m_active) { auto elapsed = m_command_timer.elapsed(); // Don't mistake this for the command!