- Changed Linux to use clock_gettime for profiling instead of rdtsc. This

avoids potential erroneous results on multicore and variable speed
  processors. Windows will need to be updated accordingly.



SVN r1142 (trunk)
This commit is contained in:
Randy Heit 2008-08-10 03:25:08 +00:00
commit ad96225213
21 changed files with 399 additions and 540 deletions

View file

@ -63,9 +63,6 @@ ClassReg DObject::RegistrationInfo =
};
_DECLARE_TI(DObject)
static cycle_t StaleCycles;
static int StaleCount;
FMetaTable::~FMetaTable ()
{
FreeMeta ();
@ -528,11 +525,4 @@ void DObject::CheckIfSerialized () const
StaticType()->TypeName.GetChars());
}
}
ADD_STAT (destroys)
{
FString out;
out.Format ("Pointer fixing: %d in %04.1f ms",
StaleCount, SecondsPerCycle * (double)StaleCycles * 1000);
return out;
}