From 4071286bfa6bf4d1c3c5ab145df3fe98c88e2d6a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 2 Mar 2011 21:28:25 +0000 Subject: debug stracktrace added git-svn-id: svn://localhost/ardour2/branches/3.0@9044 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_events.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/ardour/session_events.cc') diff --git a/libs/ardour/session_events.cc b/libs/ardour/session_events.cc index df47cd5baf..f3f0ead3ae 100644 --- a/libs/ardour/session_events.cc +++ b/libs/ardour/session_events.cc @@ -62,6 +62,11 @@ SessionEvent::operator new (size_t) CrossThreadPool* p = pool->per_thread_pool (); SessionEvent* ev = static_cast (p->alloc ()); DEBUG_TRACE (DEBUG::SessionEvents, string_compose ("%1 Allocating SessionEvent from %2 ev @ %3\n", pthread_self(), p->name(), ev)); +#ifdef NDEBUG + if (DEBUG::SessionEvents & PBD::debug_bits) { + stacktrace (cerr, 20); + } +#endif ev->own_pool = p; return ev; } -- cgit v1.2.3