зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1829983 - Added some debug-only getters to TimeStamp and TimeDuration r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D177833
This commit is contained in:
Родитель
63589e65b4
Коммит
1bdfc3e820
|
@ -169,6 +169,10 @@ class BaseTimeDuration {
|
|||
return FromTicks(std::min(aA.mValue, aB.mValue));
|
||||
}
|
||||
|
||||
#if defined(DEBUG)
|
||||
int64_t GetValue() const { return mValue; }
|
||||
#endif
|
||||
|
||||
private:
|
||||
// Block double multiplier (slower, imprecise if long duration) - Bug 853398.
|
||||
// If required, use MultDouble explicitly and with care.
|
||||
|
@ -535,6 +539,10 @@ class TimeStamp {
|
|||
static MFBT_API void Startup();
|
||||
static MFBT_API void Shutdown();
|
||||
|
||||
#if defined(DEBUG)
|
||||
TimeStampValue GetValue() const { return mValue; }
|
||||
#endif
|
||||
|
||||
private:
|
||||
friend struct IPC::ParamTraits<mozilla::TimeStamp>;
|
||||
friend struct TimeStampInitialization;
|
||||
|
|
|
@ -86,6 +86,13 @@ class TimeStampValue {
|
|||
return int64_t(*this - aOther) != 0;
|
||||
}
|
||||
bool IsNull() const { return mIsNull; }
|
||||
|
||||
#if defined(DEBUG)
|
||||
uint64_t GTC() const { return mGTC; }
|
||||
uint64_t QPC() const { return mQPC; }
|
||||
|
||||
bool HasQPC() const { return mHasQPC; }
|
||||
#endif
|
||||
};
|
||||
|
||||
} // namespace mozilla
|
||||
|
|
Загрузка…
Ссылка в новой задаче