fix log when nevents=0 and report traceback in failure of perf/gen