mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 04:01:48 +00:00
Change rdtscp check to rdtsc check.
This commit is contained in:
parent
1e8c842444
commit
284d49b34b
@ -224,7 +224,7 @@ static int64_t SetupHwTimer()
|
|||||||
#ifndef TRACY_TIMER_QPC
|
#ifndef TRACY_TIMER_QPC
|
||||||
uint32_t regs[4];
|
uint32_t regs[4];
|
||||||
CpuId( regs, 0x80000001 );
|
CpuId( regs, 0x80000001 );
|
||||||
if( !( regs[3] & ( 1 << 27 ) ) ) InitFailure( "CPU doesn't support RDTSCP instruction." );
|
if( !( regs[3] & ( 1 << 4 ) ) ) InitFailure( "CPU doesn't support RDTSC instruction." );
|
||||||
CpuId( regs, 0x80000007 );
|
CpuId( regs, 0x80000007 );
|
||||||
if( !( regs[3] & ( 1 << 8 ) ) )
|
if( !( regs[3] & ( 1 << 8 ) ) )
|
||||||
{
|
{
|
||||||
|
@ -452,7 +452,7 @@ The first command will allow access to system CPU statistics. The second one wil
|
|||||||
|
|
||||||
\paragraph{Cloud service providers}
|
\paragraph{Cloud service providers}
|
||||||
|
|
||||||
In some cases you actually don't own the hardware, but lend it from someone else. In such circumstances you might be running inside a virtual machine, which may be configured to prohibit you from using the bare metal facilities needed by Tracy\footnote{Or you might just be using a quite old CPU, which doesn't have support for required features.}. One example of such limitation would be lack of access to a reliable time stamp register readings, which will prevent the application from starting with either 'CPU doesn't support RDTSCP instruction' or 'CPU doesn't support invariant TSC' error message. If you are using Windows, you may workaround this issue by rebuilding the profiled application with the \texttt{TRACY\_TIMER\_QPC} macro, but be aware that it will severely lower the resolution of timer readings.
|
In some cases you actually don't own the hardware, but lend it from someone else. In such circumstances you might be running inside a virtual machine, which may be configured to prohibit you from using the bare metal facilities needed by Tracy\footnote{Or you might just be using a quite old CPU, which doesn't have support for required features.}. One example of such limitation would be lack of access to a reliable time stamp register readings, which will prevent the application from starting with either 'CPU doesn't support RDTSC instruction' or 'CPU doesn't support invariant TSC' error message. If you are using Windows, you may workaround this issue by rebuilding the profiled application with the \texttt{TRACY\_TIMER\_QPC} macro, but be aware that it will severely lower the resolution of timer readings.
|
||||||
|
|
||||||
\subsubsection{Changing network port}
|
\subsubsection{Changing network port}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user