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

static void org::netbeans::lib::profiler::server::ProfilerRuntimeCPUFullInstr::markerMethodExit ( char  methodId  )  [inline, static]

Called upon exit from the marker method.

Definition at line 125 of file ProfilerRuntimeCPUFullInstr.java.

References org::netbeans::lib::profiler::server::ThreadInfo::inCallGraph, org::netbeans::lib::profiler::server::ThreadInfo::inProfilingRuntimeMethod, org::netbeans::lib::profiler::server::ThreadInfo::isInitialized(), and org::netbeans::lib::profiler::server::ThreadInfo::stackDepth.

                                                       {
        if (recursiveInstrumentationDisabled) {
            return;
        }

        ThreadInfo ti = ThreadInfo.getThreadInfo();

        if (ti.isInitialized() && ti.inCallGraph) { // ti == null may happen if instrumentation has been removed or data collectors reset

            if (ti.inProfilingRuntimeMethod > 0) {
                return;
            }

            ti.inProfilingRuntimeMethod++;

            //System.out.println("------markerMethodExit for " + instrMethodClasses[methodId] + "." + instrMethodNames[methodId] + ", depth = " + ti.stackDepth + ", id = " + (int) methodId);
            ti.stackDepth--;

            if (ti.stackDepth < 1) {
                ti.inCallGraph = false; // We are exiting the marker method of our call subgraph
            }

            writeTimeStampedEvent(MARKER_EXIT, ti, methodId);
            ti.inProfilingRuntimeMethod--;
        }
    }


Generated by  Doxygen 1.6.0   Back to index