mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
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:
parent
52f794edec
commit
697f943653
@ -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) + '"'
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user