Fix the bug in timestamps sampling, adjust of debug info and use tuple merge strategy.