use of com.ibm.dtfj.javacore.parser.framework.tag.LineRule in project openj9 by eclipse.
the class MonitorTagParser method addPoolTotal.
/**
*/
private void addPoolTotal() {
ILineRule lineRule = new LineRule() {
public void processLine(String source, int startingOffset) {
consumeUntilFirstMatch(CommonPatternMatchers.colon);
addToken(TOTAL_MONITORS, CommonPatternMatchers.dec);
}
};
addTag(T_2LKPOOLTOTAL, lineRule);
}
use of com.ibm.dtfj.javacore.parser.framework.tag.LineRule in project openj9 by eclipse.
the class MemoryTagParser method addSectionName.
protected void addSectionName() {
ILineRule lineRule = new LineRule() {
public void processLine(String source, int startingOffset) {
consumeUntilFirstMatch(CommonPatternMatchers.whitespace);
addToken(MEMORY_SEGMENT_NAME, CommonPatternMatchers.allButLineFeed);
}
};
addTag(T_1STSEGTYPE, lineRule);
}
use of com.ibm.dtfj.javacore.parser.framework.tag.LineRule in project openj9 by eclipse.
the class TitleTagParser method addDateTime.
/**
* Add rule for the dump date (1TIDATETIME line)
*/
private void addDateTime() {
ILineRule lineRule = new LineRule() {
public void processLine(String source, int startingOffset) {
// 1TIDATETIME Date: 2009/02/09 at 15:48:30
// or (Java 8 SR2 or later, with millisecs added):
// 1TIDATETIME Date: 2015/07/17 at 09:46:27:261
consumeUntilFirstMatch(CommonPatternMatchers.colon);
consumeUntilFirstMatch(CommonPatternMatchers.whitespace);
addToken(TI_DATE, CommonPatternMatchers.allButLineFeed);
}
};
addTag(T_1TIDATETIME, lineRule);
}
use of com.ibm.dtfj.javacore.parser.framework.tag.LineRule in project openj9 by eclipse.
the class TitleTagParser method addNanoTime.
/**
* Add rule for the dump nanotime (1TINANOTIME line)
*/
private void addNanoTime() {
ILineRule lineRule = new LineRule() {
public void processLine(String source, int startingOffset) {
// 1TINANOTIME System nanotime: 3534320355422
consumeUntilFirstMatch(CommonPatternMatchers.colon);
consumeUntilFirstMatch(CommonPatternMatchers.whitespace);
addToken(TI_NANO, CommonPatternMatchers.allButLineFeed);
}
};
addTag(T_1TINANOTIME, lineRule);
}
use of com.ibm.dtfj.javacore.parser.framework.tag.LineRule in project openj9 by eclipse.
the class ThreadTagParser method initThreadInfo2Tag.
/**
* Parse the native stack address range information
*/
private void initThreadInfo2Tag() {
// 3XMTHREADINFO2 (native stack address range from:0x915CA000, to:0x91589000, size:0x41000)
ILineRule lineRule = new LineRule() {
public void processLine(String source, int startingOffset) {
/*
* NATIVE_STACK_FROM
*/
consumeUntilFirstMatch(CommonPatternMatchers.colon);
addPrefixedHexToken(IThreadTypes.NATIVE_STACK_FROM);
/*
* NATIVE_STACK_TO
*/
consumeUntilFirstMatch(CommonPatternMatchers.colon);
addPrefixedHexToken(IThreadTypes.NATIVE_STACK_TO);
/*
* NATIVE_STACK_SIZE
*/
consumeUntilFirstMatch(CommonPatternMatchers.colon);
addPrefixedHexToken(IThreadTypes.NATIVE_STACK_SIZE);
}
};
addTag(IThreadTypes.T_3XMTHREADINFO2, lineRule);
}
Aggregations