@Override boolean isRootIncluded(Set<Class<?>> providedTags, SourceSection rootSection, RootNode rootNode, int rootNodeBits) { if (rootSection == null) { return false; } for (SourceSection compareSection : sourceSections) { if (rootSection.equals(compareSection)) { return true; } } return false; }
@Override public boolean equals(Object impl, Object obj) { SourceSection section = (SourceSection) impl; return section.equals(obj); }
@Override boolean isIncluded(Set<Class<?>> providedTags, Node instrumentedNode, SourceSection s) { if (s == null) { return false; } for (SourceSection compareSection : sourceSections) { if (s.equals(compareSection)) { return true; } } return false; }
@Override boolean isRootIncluded(Set<Class<?>> providedTags, SourceSection rootSection, RootNode rootNode, int rootNodeBits) { if (rootSection == null) { return false; } for (SourceSection compareSection : sourceSections) { if (rootSection.equals(compareSection)) { return true; } } return false; }
@Override public boolean equals(Object impl, Object obj) { SourceSection section = (SourceSection) impl; return section.equals(obj); }
@Override boolean isIncluded(Set<Class<?>> providedTags, Node instrumentedNode, SourceSection s) { if (s == null) { return false; } for (SourceSection compareSection : sourceSections) { if (s.equals(compareSection)) { return true; } } return false; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SourceLocation that = (SourceLocation) o; if (sourceSection != null ? !sourceSection.equals(that.sourceSection) : that.sourceSection != null) { return false; } return rootName != null ? rootName.equals(that.rootName) : that.rootName == null; }
private static long getSelfHitCountForRecursiveChildren(SourceSection sourceSection, String rootName, long selfCompiled, Collection<ProfilerNode<CPUSampler.Payload>> children, boolean compiled) { long hitCount = 0; for (ProfilerNode<CPUSampler.Payload> child : children) { if (child.getSourceSection().equals(sourceSection) && child.getRootName().equals(rootName)) { if (compiled) { hitCount += child.getPayload().getSelfCompiledHitCount(); } else { hitCount += child.getPayload().getSelfInterpretedHitCount(); } hitCount += getSelfHitCountForRecursiveChildren(sourceSection, rootName, hitCount, child.getChildren(), compiled); } } return selfCompiled + hitCount; }