Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2015-08-04 23:59:36 +0000
committerslewis2015-08-04 23:59:36 +0000
commit80a9f5ad2d0ed27d075b2a022b9e86c235601883 (patch)
tree1387ae5aab59773ecfcacd3bb0292e8aefdd5118 /protocols/bundles/ch.ethz.iks.r_osgi.remote/src
parent5f362fbd46d69e7b168a541aad9fb37aa29b488b (diff)
downloadorg.eclipse.ecf-80a9f5ad2d0ed27d075b2a022b9e86c235601883.tar.gz
org.eclipse.ecf-80a9f5ad2d0ed27d075b2a022b9e86c235601883.tar.xz
org.eclipse.ecf-80a9f5ad2d0ed27d075b2a022b9e86c235601883.zip
Added timing/tracing of sendMessage call in CnannelEndpointImpl.
Diffstat (limited to 'protocols/bundles/ch.ethz.iks.r_osgi.remote/src')
-rw-r--r--protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/impl/ChannelEndpointImpl.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/impl/ChannelEndpointImpl.java b/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/impl/ChannelEndpointImpl.java
index f48dfb07a..155c9f863 100644
--- a/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/impl/ChannelEndpointImpl.java
+++ b/protocols/bundles/ch.ethz.iks.r_osgi.remote/src/main/java/ch/ethz/iks/r_osgi/impl/ChannelEndpointImpl.java
@@ -1003,7 +1003,7 @@ public final class ChannelEndpointImpl implements ChannelEndpoint {
if (TRACE_TIME) {
StringBuffer buf = new StringBuffer("TIMING.END;");
buf.append((message==null?"":message));
- buf.append(";duration=").append((System.currentTimeMillis()-startTime));
+ buf.append(";duration(ms)=").append((System.currentTimeMillis()-startTime));
LogService logService = RemoteOSGiServiceImpl.log;
if (logService != null) {
if (exception != null)
@@ -1011,12 +1011,9 @@ public final class ChannelEndpointImpl implements ChannelEndpoint {
else
logService.log(LogService.LOG_INFO, buf.toString());
} else {
+ System.out.println(buf.toString());
if (exception != null)
- System.out.println(buf.toString());
- else {
- System.out.println(buf.toString());
exception.printStackTrace();
- }
}
}
}

Back to the top