зеркало из https://github.com/mozilla/pjs.git
Bug 707800. Rename SAMPLE_CHECKPOINT to SAMPLE_LABEL. r=bgirard
Checkpoint was never a good name.
This commit is contained in:
Родитель
166ce107ff
Коммит
2ee5701f59
|
@ -2618,7 +2618,7 @@ XRE_main(int argc, char* argv[], const nsXREAppData* aAppData)
|
|||
{
|
||||
NS_TIME_FUNCTION;
|
||||
SAMPLER_INIT();
|
||||
SAMPLE_CHECKPOINT("Startup", "XRE_Main");
|
||||
SAMPLE_LABEL("Startup", "XRE_Main");
|
||||
|
||||
StartupTimeline::Record(StartupTimeline::MAIN);
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
#define SAMPLER_GET_PROFILE() NULL
|
||||
#define SAMPLER_RESPONSIVENESS(time) NULL
|
||||
#define SAMPLER_GET_RESPONSIVENESS() NULL
|
||||
#define SAMPLE_CHECKPOINT(name_space, info)
|
||||
#define SAMPLE_LABEL(name_space, info)
|
||||
#define SAMPLE_MARKER(info)
|
||||
|
||||
// Redefine the macros for platforms where SPS is supported.
|
||||
|
|
|
@ -57,7 +57,7 @@ extern pthread_key_t pkey_stack;
|
|||
#define SAMPLER_GET_RESPONSIVENESS() mozilla_sampler_get_responsiveness()
|
||||
#define SAMPLER_SAVE() mozilla_sampler_save();
|
||||
#define SAMPLER_GET_PROFILE() mozilla_sampler_get_profile();
|
||||
#define SAMPLE_CHECKPOINT(name_space, info) mozilla::SamplerStackFrameRAII only_one_sampleraii_per_scope(FULLFUNCTION, name_space "::" info);
|
||||
#define SAMPLE_LABEL(name_space, info) mozilla::SamplerStackFrameRAII only_one_sampleraii_per_scope(FULLFUNCTION, name_space "::" info);
|
||||
#define SAMPLE_MARKER(info) mozilla_sampler_add_marker(info);
|
||||
|
||||
// STORE_SEQUENCER: Because signals can interrupt our profile modification
|
||||
|
|
Загрузка…
Ссылка в новой задаче