зеркало из https://github.com/mozilla/gecko-dev.git
Bug 734707 - Fix Jank profiling feature side effects. r=jmuizelaar
This commit is contained in:
Родитель
0e16ad4b44
Коммит
b0dd1400b6
|
@ -542,18 +542,18 @@ void TableTicker::Tick(TickSample* sample)
|
|||
}
|
||||
mStack->mQueueClearMarker = true;
|
||||
|
||||
// if we are on a different event we can discard any temporary samples
|
||||
// we've kept around
|
||||
if (sLastSampledEventGeneration != sCurrentEventGeneration) {
|
||||
// XXX: we also probably want to add an entry to the profile to help
|
||||
// distinguish which samples are part of the same event. That, or record
|
||||
// the event generation in each sample
|
||||
mProfile.erase();
|
||||
}
|
||||
sLastSampledEventGeneration = sCurrentEventGeneration;
|
||||
|
||||
bool recordSample = true;
|
||||
if (mJankOnly) {
|
||||
// if we are on a different event we can discard any temporary samples
|
||||
// we've kept around
|
||||
if (sLastSampledEventGeneration != sCurrentEventGeneration) {
|
||||
// XXX: we also probably want to add an entry to the profile to help
|
||||
// distinguish which samples are part of the same event. That, or record
|
||||
// the event generation in each sample
|
||||
mProfile.erase();
|
||||
}
|
||||
sLastSampledEventGeneration = sCurrentEventGeneration;
|
||||
|
||||
recordSample = false;
|
||||
// only record the events when we have a we haven't seen a tracer event for 100ms
|
||||
if (!sLastTracerEvent.IsNull()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче