diff options
author | Thomas Watson | 2019-06-28 13:13:33 +0000 |
---|---|---|
committer | Thomas Watson | 2019-06-28 13:13:33 +0000 |
commit | 6f3b7ea05d6f805a70ecd313ffc9de61912748dc (patch) | |
tree | fa7e4409bb1b7c2cb8da66ddc899ee48e4e69b6f /bundles/org.eclipse.osgi/container/src/org/eclipse/osgi | |
parent | 68ef33a10da1674e02fe5975ab27c613c5372f77 (diff) | |
download | rt.equinox.framework-6f3b7ea05d6f805a70ecd313ffc9de61912748dc.tar.gz rt.equinox.framework-6f3b7ea05d6f805a70ecd313ffc9de61912748dc.tar.xz rt.equinox.framework-6f3b7ea05d6f805a70ecd313ffc9de61912748dc.zip |
Bug 548723 - Add event info to bundleStartTime trace messageY20190701-0635Y20190628-1440I20190702-0930I20190702-0610I20190701-1805I20190630-1800I20190629-1800I20190628-1800
Change-Id: I6237f09b6509cf67311af0929c2bd77b17eeaf06
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi')
-rw-r--r-- | bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/Module.java | 2 | ||||
-rw-r--r-- | bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/BundleContextImpl.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/Module.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/Module.java index 4a8d7e723..3e38958f4 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/Module.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/Module.java @@ -485,7 +485,7 @@ public abstract class Module implements BundleReference, BundleStartLevel, Compa publishEvent(event); // only print bundleTime information if we actually fired an event for this bundle if (container.DEBUG_BUNDLE_START_TIME) { - Debug.println(TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startTime) + "ms for total start time of " + this); //$NON-NLS-1$ + Debug.println(TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startTime) + " ms for total start time event " + event + " - " + this); //$NON-NLS-1$ //$NON-NLS-2$ } } diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/BundleContextImpl.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/BundleContextImpl.java index 94920c0e3..5d900bf78 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/BundleContextImpl.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/BundleContextImpl.java @@ -777,7 +777,7 @@ public class BundleContextImpl implements BundleContext, EventDispatcher<Object, } activator = loadBundleActivator(); if (debug.DEBUG_BUNDLE_TIME) { - Debug.println((System.currentTimeMillis() - start) + "ms to load the activator of " + bundle); //$NON-NLS-1$ + Debug.println((System.currentTimeMillis() - start) + " ms to load the activator of " + bundle); //$NON-NLS-1$ } } catch (Exception e) { if (e instanceof RuntimeException) { @@ -794,7 +794,7 @@ public class BundleContextImpl implements BundleContext, EventDispatcher<Object, throw be; } finally { if (debug.DEBUG_BUNDLE_TIME) { - Debug.println((System.currentTimeMillis() - start) + "ms to load and start the activator of " + bundle); //$NON-NLS-1$ + Debug.println((System.currentTimeMillis() - start) + " ms to load and start the activator of " + bundle); //$NON-NLS-1$ } } } |