Alexey Kardashevskiy 89d5cbddee profiler: Reenable built-in profiler
2ed1ebcf6 "timer: replace time() with QEMU_CLOCK_HOST" broke compile
when configured with --enable-profiler. Turned out the profiler has been
broken for a while.

This does s/qemu_time/tcg_time/ as the profiler only works in a TCG mode.
This also fixes the compile error.

This changes profile_getclock() to return nanoseconds rather than
CPU ticks as the "profile" HMP command prints seconds and there is no
platform-independent way to get ticks-per-second rate.
Since TCG is quite slow and get_clock() returns nanoseconds (fine
enough), this should not affect precision much.

This removes unused qemu_time_start and tlb_flush_time.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-Id: <1426478258-29961-1-git-send-email-aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-03-18 12:07:34 +01:00
..
2015-02-02 16:55:10 +01:00
2014-11-02 10:04:34 +03:00
2014-10-09 15:36:15 +02:00
2013-02-16 11:11:34 +00:00
2014-05-30 13:00:28 -06:00
2014-12-16 18:43:19 +00:00
2014-02-20 13:14:18 +01:00
2014-06-19 18:44:19 +03:00
2015-02-16 17:30:19 +01:00
2015-02-16 17:30:19 +01:00
2014-02-01 13:46:06 +04:00
2014-03-13 14:42:21 +01:00
2015-01-16 13:06:17 +05:30
2013-10-17 17:30:55 +02:00
2013-10-17 17:30:55 +02:00
2015-02-02 16:55:10 +01:00
2015-03-18 12:07:34 +01:00
2015-01-20 14:24:07 +00:00