Logo Search packages:      
Sourcecode: visualvm version File versions  Download package

static RuntimeProfilingPoint [] org::netbeans::lib::profiler::instrumentation::ClassManager::getRuntimeProfilingPoints ( RuntimeProfilingPoint[]  points,
ClassInfo  classInfo 
) [inline, static, protected, inherited]

Filters profiling points for given class.

Parameters:
points profiling points to scan
classInfo searches for points in this class
Returns:
RuntimeProfilingPoint[] array of profiling points inside the specified method

Definition at line 95 of file ClassManager.java.

References org::netbeans::lib::profiler::client::RuntimeProfilingPoint::getClassName(), org::netbeans::lib::profiler::classfile::BaseClassInfo::getName(), and org::netbeans::lib::profiler::client::RuntimeProfilingPoint::resolve().

Referenced by org::netbeans::lib::profiler::instrumentation::RecursiveMethodInstrumentor::createInstrumentedMethodPack15().

                                                                                                                            {
        List newPoints = null;

        String className = classInfo.getName().replace('/', '.'); // NOI18N

        for (int i = 0; i < points.length; i++) {
            RuntimeProfilingPoint point = points[i];

            if (className.equals(point.getClassName()) && point.resolve(classInfo)) {
                if (newPoints == null) {
                    newPoints = new ArrayList(2);
                }

                newPoints.add(point);
            }
        }

        if (newPoints == null) {
            return EMPTY_PROFILEPOINT_ARRAY;
        }

        return (RuntimeProfilingPoint[]) newPoints.toArray(new RuntimeProfilingPoint[newPoints.size()]);
    }


Generated by  Doxygen 1.6.0   Back to index