Bug 1333296 (part 4) - Remove SPS references in testing/talos/. r=mstange.

They are all in comments.

--HG--
extra : rebase_source : e1be7d65ed9a3813763012aa8c843eb73412d5f3
This commit is contained in:
Nicholas Nethercote 2017-01-24 14:20:23 +11:00
parent cb7d796cb1
commit 4b20732978
3 changed files with 23 additions and 24 deletions

View File

@ -77,8 +77,7 @@ TalosPowersService.prototype = {
},
/**
* Enable the SPS profiler with some settings and then pause
* immediately.
* Enable the Gecko Profiler with some settings and then pause immediately.
*
* @param data (object)
* A JavaScript object with the following properties:

View File

@ -15,7 +15,7 @@ var TalosContentProfiler;
// Whether or not this TalosContentProfiler object has had initFromObject
// or initFromURLQueryParams called on it. Any functions that will send
// events to the parent to change the behaviour of the SPS Profiler
// events to the parent to change the behaviour of the Gecko Profiler
// should only be called after calling either initFromObject or
// initFromURLQueryParams.
var initted = false;
@ -137,13 +137,13 @@ var TalosContentProfiler;
/**
* A Talos test is about to start. This will return a Promise that
* resolves once the Profiler has been initialized. Note that the
* SPS profiler will be paused immediately after starting and that
* Gecko Profiler will be paused immediately after starting and that
* resume() should be called in order to collect samples.
*
* @param testName (string)
* The name of the test to use in Profiler markers.
* @returns Promise
* Resolves once the SPS profiler has been initialized and paused.
* Resolves once the Gecko Profiler has been initialized and paused.
*/
beginTest(testName) {
if (initted) {
@ -162,9 +162,9 @@ var TalosContentProfiler;
},
/**
* A Talos test has finished. This will stop the SPS profiler from sampling,
* and return a Promise that resolves once the Profiler has finished dumping
* the multi-process profile to disk.
* A Talos test has finished. This will stop the Gecko Profiler from
* sampling, and return a Promise that resolves once the Profiler has
* finished dumping the multi-process profile to disk.
*
* @returns Promise
* Resolves once the profile has been dumped to disk. The test should
@ -200,10 +200,10 @@ var TalosContentProfiler;
},
/**
* Resumes the SPS profiler sampler. Can also simultaneously set a marker.
* Resumes the Gecko Profiler sampler. Can also simultaneously set a marker.
*
* @returns Promise
* Resolves once the SPS profiler has resumed.
* Resolves once the Gecko Profiler has resumed.
*/
resume(marker="") {
if (initted) {
@ -213,10 +213,10 @@ var TalosContentProfiler;
},
/**
* Pauses the SPS profiler sampler. Can also simultaneously set a marker.
* Pauses the Gecko Profiler sampler. Can also simultaneously set a marker.
*
* @returns Promise
* Resolves once the SPS profiler has paused.
* Resolves once the Gecko Profiler has paused.
*/
pause(marker="") {
if (initted) {
@ -253,4 +253,4 @@ var TalosContentProfiler;
Services.profiler.AddMarker(marker);
},
};
})();
})();

View File

@ -6,7 +6,7 @@
* This utility script is for instrumenting your Talos test for
* performance profiles while running within the parent process.
* Almost all of the functions that this script exposes to the
* SPS Profiler are synchronous, except for finishTest, since that
* Gecko Profiler are synchronous, except for finishTest, since that
* involves requesting the profiles from any content processes and
* then writing to disk.
*
@ -20,7 +20,7 @@ var TalosParentProfiler;
// Whether or not this TalosContentProfiler object has had initFromObject
// or initFromURLQueryParams called on it. Any functions that change the
// state of the SPS Profiler should only be called after calling either
// state of the Gecko Profiler should only be called after calling either
// initFromObject or initFromURLQueryParams.
let initted = false;
@ -102,7 +102,7 @@ var TalosParentProfiler;
},
/**
* A Talos test is about to start. Note that the SPS profiler will be
* A Talos test is about to start. Note that the Gecko Profiler will be
* paused immediately after starting and that resume() should be called
* in order to collect samples.
*
@ -121,9 +121,9 @@ var TalosParentProfiler;
},
/**
* A Talos test has finished. This will stop the SPS profiler from sampling,
* and return a Promise that resolves once the Profiler has finished dumping
* the multi-process profile to disk.
* A Talos test has finished. This will stop the Gecko Profiler from
* sampling, and return a Promise that resolves once the Profiler has
* finished dumping the multi-process profile to disk.
*
* @returns Promise
* Resolves once the profile has been dumped to disk. The test should
@ -159,10 +159,10 @@ var TalosParentProfiler;
},
/**
* Resumes the SPS profiler sampler. Can also simultaneously set a marker.
* Resumes the Gecko Profiler sampler. Can also simultaneously set a marker.
*
* @returns Promise
* Resolves once the SPS profiler has resumed.
* Resolves once the Gecko Profiler has resumed.
*/
resume(marker="") {
if (initted) {
@ -171,10 +171,10 @@ var TalosParentProfiler;
},
/**
* Pauses the SPS profiler sampler. Can also simultaneously set a marker.
* Pauses the Gecko Profiler sampler. Can also simultaneously set a marker.
*
* @returns Promise
* Resolves once the SPS profiler has paused.
* Resolves once the Gecko Profiler has paused.
*/
pause(marker="") {
if (initted) {
@ -199,4 +199,4 @@ var TalosParentProfiler;
}
},
};
})();
})();