add profiling option for geometry build