зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cdad822203
Коммит
e135e0b3f6
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче