|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.counters.AbstractProcessCollector
com.bigdata.counters.win.TypeperfCollector
public class TypeperfCollector
Collects per-host performance counters on a Windows platform using
typeperf and aligns them with those declared by
IRequiredHostCounters.
Note: The names of counters under Windows are NOT case-sensitive.
| Field Summary | |
|---|---|
protected static boolean |
DEBUG
True iff the log level is DEBUG or less. |
protected List<com.bigdata.counters.win.TypeperfCollector.InstrumentForWPC> |
decls
List of performance counters that we will be collecting. |
protected static boolean |
INFO
True iff the log level is INFO or less. |
protected static org.apache.log4j.Logger |
log
|
| Fields inherited from class com.bigdata.counters.AbstractProcessCollector |
|---|
activeProcess |
| Constructor Summary | |
|---|---|
TypeperfCollector(int interval)
|
|
| Method Summary | |
|---|---|
List<String> |
getCommand()
Generate command to write performance counters on the console. |
CounterSet |
getCounters()
Declares the performance counters to be collected from the Windows platform. |
AbstractProcessReader |
getProcessReader()
|
| Methods inherited from class com.bigdata.counters.AbstractProcessCollector |
|---|
getInterval, setEnvironment, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
protected static final boolean INFO
log level is INFO or less.
protected static final boolean DEBUG
log level is DEBUG or less.
protected List<com.bigdata.counters.win.TypeperfCollector.InstrumentForWPC> decls
#getCounters(), which sets up this list.| Constructor Detail |
|---|
public TypeperfCollector(int interval)
interval - | Method Detail |
|---|
public List<String> getCommand()
The sample interval format is -si [hh:[mm:]]ss.
Note: typeperf supports csv, tab, and bin output formats. However specifying tsv (tab delimited) causes it to always write on a file so I am using csv (comma delimited, which is the default in any case).
getCommand in class AbstractProcessCollectorIOExceptionpublic AbstractProcessReader getProcessReader()
getProcessReader in class AbstractProcessCollectorpublic CounterSet getCounters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||