Skip to content
Snippets Groups Projects
Commit 1bdfc3e8 authored by Justin Link's avatar Justin Link
Browse files

Bug 1829983 - Added some debug-only getters to TimeStamp and TimeDuration r=dthayer

parent 63589e65
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment