Bug 1685938 - Remove unused parameters in DoPeriodicSample - r=canaltinova

Differential Revision: https://phabricator.services.mozilla.com/D101543
This commit is contained in:
Gerald Squelart 2021-01-19 02:53:42 +00:00
Родитель 40fdf59f83
Коммит 30c1777768
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -2258,8 +2258,6 @@ static void DoSyncSample(PSLockRef aLock, RegisteredThread& aRegisteredThread,
// is `aSamplePos`, we can write the rest to `aBuffer` (which may be different).
static inline void DoPeriodicSample(PSLockRef aLock,
RegisteredThread& aRegisteredThread,
ProfiledThreadData& aProfiledThreadData,
const TimeStamp& aNow,
const Registers& aRegs, uint64_t aSamplePos,
ProfileBuffer& aBuffer) {
// WARNING: this function runs within the profiler's "critical section".
@ -3424,8 +3422,7 @@ void SamplerThread::Run() {
mSampler.SuspendAndSampleAndResumeThread(
lock, *registeredThread, now,
[&](const Registers& aRegs, const TimeStamp& aNow) {
DoPeriodicSample(lock, *registeredThread,
*profiledThreadData, now, aRegs, samplePos,
DoPeriodicSample(lock, *registeredThread, aRegs, samplePos,
localProfileBuffer);
// For "eventDelay", we want the input delay - but if