提交 3423c0c6 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

reset stats after printing with ^Y

上级 10a20d0c
......@@ -288,6 +288,7 @@ consoleintr(int (*getc)(void))
break;
case C('Y'): // scopedperf stats
scopedperf::perfsum_base::printall();
scopedperf::perfsum_base::resetall();
break;
default:
if(c != 0 && input.e-input.r < INPUT_BUF){
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论