From 5e6ad6f90eaab923b2d949882751075c5e3291e0 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 21 Aug 2005 09:30:40 +0000 Subject: kqemu profiling git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1546 c046a42c-6fe2-441c-8c8c-71466251a162 --- monitor.c | 3 +++ vl.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/monitor.c b/monitor.c index 297c0a4..1ff9bde 100644 --- a/monitor.c +++ b/monitor.c @@ -251,6 +251,9 @@ static void do_info_history (void) static void do_quit(void) { +#ifdef USE_KQEMU + kqemu_record_dump(); +#endif exit(0); } diff --git a/vl.h b/vl.h index e0bc8b8..31d05b6 100644 --- a/vl.h +++ b/vl.h @@ -878,4 +878,6 @@ const char *readline_get_history(unsigned int index); void readline_start(const char *prompt, int is_password, ReadLineFunc *readline_func, void *opaque); +void kqemu_record_dump(void); + #endif /* VL_H */ -- cgit v1.1