Bug 1648169 - Replace Services.profiler.AddMarker with ChromeUtils.addProfilerMarker in Talos, r=perftest-reviewers,igoldan.

Differential Revision: https://phabricator.services.mozilla.com/D80914
This commit is contained in:
Florian Quèze 2020-06-30 09:46:13 +00:00
Родитель 52f794edec
Коммит 697f943653
4 изменённых файлов: 18 добавлений и 18 удалений

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

@ -168,24 +168,24 @@ var Profiler;
if (_profiler.ResumeSampling) {
_profiler.ResumeSampling();
}
_profiler.AddMarker(
ChromeUtils.addProfilerMarker(
explicit ? name : 'Start of test "' + (name || test_name) + '"'
);
}
},
pause: function Profiler__pause(name, explicit) {
if (_profiler) {
ChromeUtils.addProfilerMarker(
explicit ? name : 'End of test "' + (name || test_name) + '"'
);
if (_profiler.PauseSampling) {
_profiler.PauseSampling();
}
_profiler.AddMarker(
explicit ? name : 'End of test "' + (name || test_name) + '"'
);
}
},
mark: function Profiler__mark(marker, explicit) {
if (_profiler) {
_profiler.AddMarker(
ChromeUtils.addProfilerMarker(
explicit ? marker : 'Profiler: "' + (marker || test_name) + '"'
);
}

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

@ -171,7 +171,7 @@ TalosPowersService.prototype = {
*/
profilerPause(marker = null) {
if (marker) {
Services.profiler.AddMarker(marker);
ChromeUtils.addProfilerMarker(marker);
}
Services.profiler.PauseSampling();
@ -188,7 +188,7 @@ TalosPowersService.prototype = {
Services.profiler.ResumeSampling();
if (marker) {
Services.profiler.AddMarker(marker);
ChromeUtils.addProfilerMarker(marker);
}
},
@ -196,7 +196,7 @@ TalosPowersService.prototype = {
* Adds a marker to the Profile in the parent process.
*/
profilerMarker(marker) {
Services.profiler.AddMarker(marker);
ChromeUtils.addProfilerMarker(marker);
},
receiveProfileCommand(message) {

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

@ -121,24 +121,24 @@ var Profiler;
if (_profiler.ResumeSampling) {
_profiler.ResumeSampling();
}
_profiler.AddMarker(
ChromeUtils.addProfilerMarker(
explicit ? name : 'Start of test "' + (name || test_name) + '"'
);
}
},
pause: function Profiler__pause(name, explicit) {
if (_profiler) {
ChromeUtils.addProfilerMarker(
explicit ? name : 'End of test "' + (name || test_name) + '"'
);
if (_profiler.PauseSampling) {
_profiler.PauseSampling();
}
_profiler.AddMarker(
explicit ? name : 'End of test "' + (name || test_name) + '"'
);
}
},
mark: function Profiler__mark(marker, explicit) {
if (_profiler) {
_profiler.AddMarker(
ChromeUtils.addProfilerMarker(
explicit ? marker : 'Profiler: "' + (marker || test_name) + '"'
);
}

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

@ -121,24 +121,24 @@ var Profiler;
if (_profiler.ResumeSampling) {
_profiler.ResumeSampling();
}
_profiler.AddMarker(
ChromeUtils.addProfilerMarker(
explicit ? name : 'Start of test "' + (name || test_name) + '"'
);
}
},
pause: function Profiler__pause(name, explicit) {
if (_profiler) {
ChromeUtils.addProfilerMarker(
explicit ? name : 'End of test "' + (name || test_name) + '"'
);
if (_profiler.PauseSampling) {
_profiler.PauseSampling();
}
_profiler.AddMarker(
explicit ? name : 'End of test "' + (name || test_name) + '"'
);
}
},
mark: function Profiler__mark(marker, explicit) {
if (_profiler) {
_profiler.AddMarker(
ChromeUtils.addProfilerMarker(
explicit ? marker : 'Profiler: "' + (marker || test_name) + '"'
);
}