qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH qemu] profiler: Reenable built-in profiler


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH qemu] profiler: Reenable built-in profiler
Date: Tue, 17 Mar 2015 20:29:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0


On 16/03/2015 04:57, Alexey Kardashevskiy wrote:
> 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 <address@hidden>

Thanks, applied.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]