Search in sources :

Example 1 with EqualsPredicate

use of org.spf4j.base.EqualsPredicate in project spf4j by zolyfarkas.

the class ZStackPanel method filter.

@Override
public void filter() {
    List<Sampled<InvokedMethod>> tips = search(xx, yy, 0, 0);
    if (tips.size() >= 1) {
        final InvokedMethod value = tips.get(0).getObj();
        updateSamples(getMethod(), getSamples().filteredBy(new EqualsPredicate<>(value.getMethod())));
        repaint();
    }
}
Also used : InvokedMethod(org.spf4j.stackmonitor.InvokedMethod) EqualsPredicate(org.spf4j.base.EqualsPredicate)

Example 2 with EqualsPredicate

use of org.spf4j.base.EqualsPredicate in project spf4j by zolyfarkas.

the class FlameStackPanel method filter.

@Override
public void filter() {
    List<Pair<Method, SampleNode>> tips = search(xx, yy, 0, 0);
    if (tips.size() >= 1) {
        final Method value = tips.get(0).getFirst();
        updateSamples(getMethod(), getSamples().filteredBy(new EqualsPredicate<Method>(value)));
        repaint();
    }
}
Also used : EqualsPredicate(org.spf4j.base.EqualsPredicate) Method(org.spf4j.base.avro.Method) Pair(org.spf4j.base.Pair)

Example 3 with EqualsPredicate

use of org.spf4j.base.EqualsPredicate in project spf4j by zolyfarkas.

the class HotFlameStackPanel method filter.

@Override
public void filter() {
    List<SampleKey> tips = search(xx, yy, 0, 0);
    if (tips.size() >= 1) {
        final SampleKey value = tips.get(0);
        updateSamples(getMethod(), getSamples().filteredBy(new EqualsPredicate<>(value.getMethod())));
        repaint();
    }
}
Also used : EqualsPredicate(org.spf4j.base.EqualsPredicate) SampleKey(org.spf4j.stackmonitor.SampleGraph.SampleKey)

Aggregations

EqualsPredicate (org.spf4j.base.EqualsPredicate)3 Pair (org.spf4j.base.Pair)1 Method (org.spf4j.base.avro.Method)1 InvokedMethod (org.spf4j.stackmonitor.InvokedMethod)1 SampleKey (org.spf4j.stackmonitor.SampleGraph.SampleKey)1