mirror of https://github.com/apache/activemq.git
- Add ignore list for vmstat data
- Remove unused imports git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@420546 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fddc01d97c
commit
7450969cb7
|
@ -16,7 +16,6 @@
|
|||
*/
|
||||
package org.apache.activemq.tool.reports;
|
||||
|
||||
import org.apache.activemq.tool.reports.plugins.ReportPlugin;
|
||||
import org.apache.activemq.tool.reports.plugins.ThroughputReportPlugin;
|
||||
import org.apache.activemq.tool.reports.plugins.CpuReportPlugin;
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ package org.apache.activemq.tool.reports;
|
|||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.activemq.tool.reports.plugins.ReportPlugin;
|
||||
import org.apache.activemq.tool.reports.plugins.ThroughputReportPlugin;
|
||||
import org.apache.activemq.tool.reports.plugins.CpuReportPlugin;
|
||||
|
||||
|
|
|
@ -29,8 +29,9 @@ import java.util.HashMap;
|
|||
public class CpuReportPlugin implements ReportPlugin {
|
||||
private static final Log log = LogFactory.getLog(CpuReportPlugin.class);
|
||||
|
||||
public static final String NAME_IGNORE_LIST = "$r$b$w$swpd$inact$active$free$buff$cache$si$so$in$";
|
||||
public static final String NAME_BLOCK_RECV = "bi";
|
||||
public static final String NAME_BLOCK_SENT = "bu";
|
||||
public static final String NAME_BLOCK_SENT = "bo";
|
||||
public static final String NAME_CTX_SWITCH = "cs";
|
||||
public static final String NAME_USER_TIME = "us";
|
||||
public static final String NAME_SYS_TIME = "sy";
|
||||
|
@ -142,6 +143,8 @@ public class CpuReportPlugin implements ReportPlugin {
|
|||
idleTime.add(Long.valueOf(val));
|
||||
} else if (key.equals(NAME_WAIT_TIME)) {
|
||||
waitTime.add(Long.valueOf(val));
|
||||
} else if (NAME_IGNORE_LIST.indexOf("$" + key + "$") > 0) {
|
||||
// Ignore key
|
||||
} else {
|
||||
log.warn("Unrecognized CPU data. " + key + "=" + val);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ package org.apache.activemq.tool.sampler;
|
|||
|
||||
import org.apache.activemq.tool.sampler.plugins.CpuSamplerPlugin;
|
||||
import org.apache.activemq.tool.sampler.plugins.LinuxCpuSamplerPlugin;
|
||||
import org.apache.activemq.tool.reports.plugins.ReportPlugin;
|
||||
import org.apache.activemq.tool.reports.AbstractPerfReportWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.apache.activemq.tool.sampler;
|
||||
|
||||
import org.apache.activemq.tool.reports.plugins.ReportPlugin;
|
||||
import org.apache.activemq.tool.reports.AbstractPerfReportWriter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
|
Loading…
Reference in New Issue