Package org.netbeans.lib.profiler.heap

Examples of org.netbeans.lib.profiler.heap.ObjectArrayInstance


                }
                return;
            }

            if (i instanceof ObjectArrayInstance) {
                ObjectArrayInstance array = (ObjectArrayInstance) i;
                if (!isBlackListedArray(array.getJavaClass())) {
                    int n = 0;
                    for(Long ref: array.getValueIDs()) {
                        if (ref != 0) {
                            // early check to avoid needless instantiation
                            if (!ignoreRefs.get(ref) && !details.objects.get(ref)) {
                                path.setLength(len);
                                path.append('[').append(n).append(']');
View Full Code Here


                if (!accountShared || sharedRefs.get(i.getInstanceId())) {
                    details.summary.accumulate(i);
                }

                if (i instanceof ObjectArrayInstance) {
                    ObjectArrayInstance array = (ObjectArrayInstance) i;
                    if (!isBlackListedArray(array.getJavaClass())) {
                        for(Long ref: array.getValueIDs()) {
                            if (ref != 0) {
                                // early check to avoid needless instantiation
                                if (!ignoreRefs.get(ref) && !details.objects.get(ref)) {
                                    queue.set(ref, true);
                                }
View Full Code Here

    }

    @Override
    public Iterator<Instance> walk(Instance instance) {
        if (instance instanceof ObjectArrayInstance) {
            ObjectArrayInstance array = (ObjectArrayInstance) instance;
            if (index < 0) {
                return array.getValues().iterator();
            }
            else {
                if (array.getLength() > index) {
                    return Collections.singleton(array.getValues().get(index)).iterator();
                }
                else {
                    return Collections.<Instance>emptyList().iterator();
                }
            }
View Full Code Here

    }

    @Override
    public Iterator<Move> track(Instance instance) {
        if (instance instanceof ObjectArrayInstance) {
            ObjectArrayInstance array = (ObjectArrayInstance) instance;
            if (index < 0) {
                List<Move> result = new ArrayList<Move>();
                int n = 0;
                for(Instance i: array.getValues()) {
                    result.add(new Move("[" + n + "]", i));
                    ++n;
                }
                return result.iterator();
            }
            else {
                if (array.getLength() > index) {
                    return Collections.singleton(new Move("[" + index + "]", array.getValues().get(index))).iterator();
                }
                else {
                    return Collections.<Move>emptyList().iterator();
                }
            }
View Full Code Here

TOP

Related Classes of org.netbeans.lib.profiler.heap.ObjectArrayInstance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.