Bug 1639630 - Increase the java sample count limit to 120000 to cover up to 2 mins with 1ms interval. r=julienw,geckoview-reviewers,agi

Depends on D76180

Differential Revision: https://phabricator.services.mozilla.com/D76181
This commit is contained in:
Nazım Can Altınova 2020-05-21 21:20:38 +00:00
Родитель cdad822203
Коммит e135e0b3f6
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -69,9 +69,9 @@ public class GeckoJavaSampler {
public SamplingRunnable(final int aInterval, final int aSampleCount) {
// Sanity check of sampling interval.
mInterval = Math.max(1, aInterval);
// Setting a limit of 100000 for now to make sure we are not
// allocating too much.
mSampleCount = Math.min(aSampleCount, 100000);
// Setting a limit of 120000 (2 mins with 1ms interval) for now to
// make sure we are not allocating too much.
mSampleCount = Math.min(aSampleCount, 120000);
mSamples = new Sample[mSampleCount];
mSamplePos = 0;