ctrl+w to dump wq stats

上级 7228e39c
...@@ -260,8 +260,8 @@ consoleintr(int (*getc)(void)) ...@@ -260,8 +260,8 @@ consoleintr(int (*getc)(void))
consputc(BACKSPACE); consputc(BACKSPACE);
} }
break; break;
case C('C'): // cilk stats case C('W'):
cilk_dump(); wq_dump();
break; break;
case C('L'): // Prof stats case C('L'): // Prof stats
profdump(); profdump();
......
...@@ -288,6 +288,7 @@ struct vmap * vmap_copy(struct vmap *, int); ...@@ -288,6 +288,7 @@ struct vmap * vmap_copy(struct vmap *, int);
// wq.c // wq.c
int wq_trywork(void); int wq_trywork(void);
int wq_push(struct work *w); int wq_push(struct work *w);
void wq_dump(void);
struct work * allocwork(void); struct work * allocwork(void);
void freework(struct work *w); void freework(struct work *w);
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论