13
0

Suppres debug output from optimized builds

see also dc9eb38a27

Even though it may be useful to get timing information from
optimized builds, this should not be enabled by default.
This commit is contained in:
Robin Gareus 2022-05-03 20:12:21 +02:00
parent 2245e362b9
commit fd33784e45
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1115,7 +1115,9 @@ MidiRegionView::model_changed()
return; return;
} }
#ifndef NDEBUG
Timing t; Timing t;
#endif
if (_active_notes) { if (_active_notes) {
// Currently recording // Currently recording
@ -1255,8 +1257,10 @@ MidiRegionView::model_changed()
_marked_for_velocity.clear (); _marked_for_velocity.clear ();
_pending_note_selection.clear (); _pending_note_selection.clear ();
#ifndef NDEBUG
t.update (); t.update ();
std::cerr << "REDISPLAY(model) of " << region()->name() << " complete after " << t.elapsed_msecs() << std::endl; std::cerr << "REDISPLAY(model) of " << region()->name() << " complete after " << t.elapsed_msecs() << std::endl;
#endif
} }
void void
@ -1266,7 +1270,9 @@ MidiRegionView::view_changed()
return; return;
} }
#ifndef NDEBUG
Timing t; Timing t;
#endif
if (_active_notes) { if (_active_notes) {
// Currently recording // Currently recording
@ -1329,8 +1335,10 @@ MidiRegionView::view_changed()
update_sysexes(); update_sysexes();
update_patch_changes (); update_patch_changes ();
#ifndef NDEBUG
t.update (); t.update ();
std::cerr << "REDISPLAY(view) of " << region()->name() << " complete after " << t.elapsed_msecs() << std::endl; std::cerr << "REDISPLAY(view) of " << region()->name() << " complete after " << t.elapsed_msecs() << std::endl;
#endif
} }
void void