public final void setFrameCount(int size) {
        if (this.size == size) {
            return;
        }

        this.size = size;
        this.frames = new long[size * 2];

        createMesh();

        if (frameIndex >= size) {
            frameIndex = 0;
        }
    }
Sets the number of frames to display and track.  By default,
 this is 1280.

@param size the desired number of frames (&ge;0, default=1280)
jme3-core/src/main/java/com/jme3/app/BasicProfiler.java