Пример #1
0
 @Override
 public ThreadInfo map(ThreadInfo stck) {
   Profile p = (Profile) stck.getVal(STACK);
   p.filter(
       new ProfileNodeFilter() {
         @Override
         public boolean accept(SFNode node, int level, Object context) {
           return node.getStackFrame().contains(expr);
         }
       },
       null);
   return stck;
 }
Пример #2
0
 @Override
 public ThreadInfo map(ThreadInfo stck) {
   Profile p = (Profile) stck.getVal("stack");
   p.filter(
       new ProfileNodeFilter() {
         @Override
         public boolean accept(SFNode node, int level, Object context) {
           int depthBelow = node.depthBelow();
           return depthBelow < count;
         }
       },
       null);
   return stck;
 }