Fix --enable-profiling builds (bug#34099)
* src/profiler.c (syms_of_profiler_for_pdumper): Only set cpu_log if CPU profiling is enabled.
This commit is contained in:
parent
0aece3e118
commit
8ca414de0e
1 changed files with 4 additions and 0 deletions
|
@ -627,12 +627,16 @@ syms_of_profiler_for_pdumper (void)
|
|||
{
|
||||
if (dumped_with_pdumper_p ())
|
||||
{
|
||||
#ifdef PROFILER_CPU_SUPPORT
|
||||
cpu_log = Qnil;
|
||||
#endif
|
||||
memory_log = Qnil;
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef PROFILER_CPU_SUPPORT
|
||||
eassert (NILP (cpu_log));
|
||||
#endif
|
||||
eassert (NILP (memory_log));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue