add debug/measure.hpp