diff --git a/cave/build/static/linux/cave/cave.sh b/cave/build/static/linux/cave/cave.sh index 60158d1062..11278b3986 100644 --- a/cave/build/static/linux/cave/cave.sh +++ b/cave/build/static/linux/cave/cave.sh @@ -118,6 +118,7 @@ export pid=$$ curTime=`date +%Y%m%d_%H%M%S` LOGFILE=${LOGDIR}/cave_${curTime}_pid_${pid}_console.log export LOGFILE_CAVE=${LOGDIR}/cave_${curTime}_pid_${pid}_alertviz.log +export LOGFILE_PERFORMANCE=${LOGDIR}/cave_${curTime}_pid_${pid}_perf.log redirect="TRUE" for flag in $@; do diff --git a/cave/com.raytheon.uf.viz.core/log4j-viz-core.xml b/cave/com.raytheon.uf.viz.core/log4j-viz-core.xml index 8e435b385f..0f3729e653 100644 --- a/cave/com.raytheon.uf.viz.core/log4j-viz-core.xml +++ b/cave/com.raytheon.uf.viz.core/log4j-viz-core.xml @@ -29,6 +29,16 @@ + + + + + + + + + + @@ -37,6 +47,15 @@ + + + + + + + + + diff --git a/cave/com.raytheon.uf.viz.event/META-INF/MANIFEST.MF b/cave/com.raytheon.uf.viz.event/META-INF/MANIFEST.MF index e395cc27a0..1309491e3c 100644 --- a/cave/com.raytheon.uf.viz.event/META-INF/MANIFEST.MF +++ b/cave/com.raytheon.uf.viz.event/META-INF/MANIFEST.MF @@ -9,7 +9,8 @@ Require-Bundle: org.eclipse.core.runtime, com.raytheon.uf.common.event;bundle-version="1.0.0", com.raytheon.uf.common.serialization.comm;bundle-version="1.12.1174", com.raytheon.uf.common.status;bundle-version="1.12.1174", - org.eclipse.ui;bundle-version="3.6.1" + org.eclipse.ui;bundle-version="3.6.1", + org.apache.log4j;bundle-version="1.0.0" Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-ActivationPolicy: lazy Export-Package: com.raytheon.uf.viz.event diff --git a/cave/com.raytheon.uf.viz.monitor.ffmp/META-INF/MANIFEST.MF b/cave/com.raytheon.uf.viz.monitor.ffmp/META-INF/MANIFEST.MF index c45fe7ef3e..7fce450c84 100644 --- a/cave/com.raytheon.uf.viz.monitor.ffmp/META-INF/MANIFEST.MF +++ b/cave/com.raytheon.uf.viz.monitor.ffmp/META-INF/MANIFEST.MF @@ -23,7 +23,8 @@ Require-Bundle: org.eclipse.ui, com.raytheon.uf.common.cache;bundle-version="1.12.1174", com.raytheon.uf.common.stats;bundle-version="1.0.0", com.raytheon.uf.viz.stats;bundle-version="1.0.0", - com.raytheon.uf.common.event;bundle-version="1.0.0" + com.raytheon.uf.common.event;bundle-version="1.0.0", + org.apache.log4j;bundle-version="1.0.0" Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-ActivationPolicy: lazy Import-Package: com.raytheon.uf.common.colormap, diff --git a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/BasinTrendDlg.java b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/BasinTrendDlg.java index 380212f116..8a3461bcdc 100644 --- a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/BasinTrendDlg.java +++ b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/dialogs/BasinTrendDlg.java @@ -42,6 +42,10 @@ import org.eclipse.swt.widgets.Shell; import com.raytheon.uf.common.monitor.xml.ProductRunXML; import com.raytheon.uf.common.monitor.xml.ProductXML; +import com.raytheon.uf.common.status.IPerformanceStatusHandler; +import com.raytheon.uf.common.status.PerformanceStatus; +import com.raytheon.uf.common.time.util.ITimer; +import com.raytheon.uf.common.time.util.TimeUtil; import com.raytheon.uf.viz.core.RGBColors; import com.raytheon.uf.viz.monitor.ffmp.FFMPMonitor; import com.raytheon.uf.viz.monitor.ffmp.ui.dialogs.BasinTrendCommon.PlotItems; @@ -65,6 +69,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog; * ------------ ---------- ----------- -------------------------- * Initial creation * Dec 6, 2012 1353 rferrel Code clean up for non-blocking dialog. + * Feb 10, 2013 1584 mpduff Add performance logging. * * * @@ -72,6 +77,13 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog; * @version 1.0 */ public class BasinTrendDlg extends CaveSWTDialog { + /** Performance log message prefix */ + private final String prefix = "FFMP Basin Trend:"; + + /** Performance logger */ + private final IPerformanceStatusHandler perfLog = PerformanceStatus + .getHandler(prefix); + /** * Main composite. */ @@ -141,12 +153,12 @@ public class BasinTrendDlg extends CaveSWTDialog { /** * QPFSCAN radio button. */ - private List