mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-22 16:35:25 +02:00
[288656] Additional tracing for DsfSession.
This commit is contained in:
parent
e4e9e7fab2
commit
9067c010c5
1 changed files with 12 additions and 0 deletions
|
@ -334,6 +334,18 @@ public class DsfSession
|
|||
*/
|
||||
@ThreadSafe
|
||||
public void dispatchEvent(final Object event, final Dictionary<?,?> serviceProperties) {
|
||||
if (DEBUG_SESSION_DISPATCHES) {
|
||||
String msg = new Formatter().format(
|
||||
"%s Dispatching event %s to session %s from thread \"%s\" (%d)", //$NON-NLS-1$
|
||||
DsfPlugin.getDebugTime(),
|
||||
LoggingUtils.toString(event),
|
||||
LoggingUtils.toString(this),
|
||||
Thread.currentThread().getName(),
|
||||
Thread.currentThread().getId()
|
||||
).toString();
|
||||
|
||||
DsfPlugin.debug(msg);
|
||||
}
|
||||
getExecutor().submit(new DsfRunnable() {
|
||||
public void run() { doDispatchEvent(event, serviceProperties);}
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue