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

static void org::netbeans::lib::profiler::server::ProfilerRuntimeMemory::setSamplingDepth ( int  val  )  [inline, static, inherited]

Negative parameter means the depth is not limited. val == 0 means we should not take stack samples

Definition at line 108 of file ProfilerRuntimeMemory.java.

                                                 {
        if (val < 0) {
            val = MAX_STACK_FRAMES;
        } else if (val > 0) {
            val += NO_OF_PROFILER_FRAMES; // Top frames are always our own methods

            if (val > MAX_STACK_FRAMES) {
                val = MAX_STACK_FRAMES;
            }
        } else {
            stackDepth = 0;
        }

        samplingDepth = val;
    }


Generated by  Doxygen 1.6.0   Back to index