protected final void createMesh() {
        if (mesh == null) {
            mesh = new Mesh();
            mesh.setMode(Mesh.Mode.Lines);
        }

        mesh.setBuffer(Type.Position, 3, BufferUtils.createFloatBuffer(size * 4 * 3));

        FloatBuffer cb = BufferUtils.createFloatBuffer(size * 4 * 4);
        for (int i = 0; i < size; i++) {
            // For each index we add 4 colors, one for each line
            // endpoint for two layers.
            cb.put(0.5f).put(0.5f).put(0).put(1);
            cb.put(1).put(1).put(0).put(1);
            cb.put(0).put(0.5f).put(0.5f).put(1);
            cb.put(0).put(1).put(1).put(1);
        }
        mesh.setBuffer(Type.Color, 4, cb);
    }
Returns the mesh that contains the bar chart of tracked frame
 timings.

@return the pre-existing Mesh
jme3-core/src/main/java/com/jme3/app/BasicProfiler.java