protected void updateMesh() {
        FloatBuffer pb = (FloatBuffer) mesh.getBuffer(Type.Position).getData();
        pb.rewind();
        float scale = 1 / 1000000f; // scaled to ms as pixels
        for (int i = 0; i < size; i++) {
            float t1 = frames[i * 2] * scale;
            float t2 = frames[i * 2 + 1] * scale;

            pb.put(i).put(0).put(0);
            pb.put(i).put(t1).put(0);
            pb.put(i).put(t1).put(0);
            pb.put(i).put(t2).put(0);
        }
        mesh.setBuffer(Type.Position, 3, pb);
    }
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