Bug 1281793 - Remove some non-used telemetry IDs - part 4 - random things (2), r=chutten
This commit is contained in:
@@ -1650,8 +1650,6 @@ PresShell::Initialize(nscoord aWidth, nscoord aHeight)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
mozilla::TimeStamp timerStart = mozilla::TimeStamp::Now();
|
||||
|
||||
NS_ASSERTION(!mDidInitialize, "Why are we being called?");
|
||||
|
||||
nsCOMPtr<nsIPresShell> kungFuDeathGrip(this);
|
||||
@@ -1812,11 +1810,6 @@ PresShell::Initialize(nscoord aWidth, nscoord aHeight)
|
||||
ScheduleBeforeFirstPaint();
|
||||
}
|
||||
|
||||
if (root && root->IsXULElement()) {
|
||||
mozilla::Telemetry::AccumulateTimeDelta(Telemetry::XUL_INITIAL_FRAME_CONSTRUCTION,
|
||||
timerStart);
|
||||
}
|
||||
|
||||
return NS_OK; //XXX this needs to be real. MMP
|
||||
}
|
||||
|
||||
@@ -9831,17 +9824,9 @@ PresShell::ProcessReflowCommands(bool aInterruptible)
|
||||
TimeDuration elapsed = TimeStamp::Now() - timerStart;
|
||||
int32_t intElapsed = int32_t(elapsed.ToMilliseconds());
|
||||
|
||||
Telemetry::ID id;
|
||||
if (mDocument->GetRootElement()->IsXULElement()) {
|
||||
id = mIsActive
|
||||
? Telemetry::XUL_FOREGROUND_REFLOW_MS
|
||||
: Telemetry::XUL_BACKGROUND_REFLOW_MS;
|
||||
} else {
|
||||
id = mIsActive
|
||||
? Telemetry::HTML_FOREGROUND_REFLOW_MS_2
|
||||
: Telemetry::HTML_BACKGROUND_REFLOW_MS_2;
|
||||
if (!mDocument->GetRootElement()->IsXULElement() && mIsActive) {
|
||||
Telemetry::Accumulate(Telemetry::HTML_FOREGROUND_REFLOW_MS_2, intElapsed);
|
||||
}
|
||||
Telemetry::Accumulate(id, intElapsed);
|
||||
if (intElapsed > NS_LONG_REFLOW_TIME_MS) {
|
||||
Telemetry::Accumulate(Telemetry::LONG_REFLOW_INTERRUPTIBLE,
|
||||
aInterruptible ? 1 : 0);
|
||||
|
||||
Reference in New Issue
Block a user