Bug 707800. Rename SAMPLE_CHECKPOINT to SAMPLE_LABEL. r=bgirard

Checkpoint was never a good name.
This commit is contained in:
Jeff Muizelaar 2011-12-02 17:18:26 -05:00
Родитель 166ce107ff
Коммит 2ee5701f59
3 изменённых файлов: 3 добавлений и 3 удалений

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

@ -2618,7 +2618,7 @@ XRE_main(int argc, char* argv[], const nsXREAppData* aAppData)
{ {
NS_TIME_FUNCTION; NS_TIME_FUNCTION;
SAMPLER_INIT(); SAMPLER_INIT();
SAMPLE_CHECKPOINT("Startup", "XRE_Main"); SAMPLE_LABEL("Startup", "XRE_Main");
StartupTimeline::Record(StartupTimeline::MAIN); StartupTimeline::Record(StartupTimeline::MAIN);

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

@ -97,7 +97,7 @@
#define SAMPLER_GET_PROFILE() NULL #define SAMPLER_GET_PROFILE() NULL
#define SAMPLER_RESPONSIVENESS(time) NULL #define SAMPLER_RESPONSIVENESS(time) NULL
#define SAMPLER_GET_RESPONSIVENESS() NULL #define SAMPLER_GET_RESPONSIVENESS() NULL
#define SAMPLE_CHECKPOINT(name_space, info) #define SAMPLE_LABEL(name_space, info)
#define SAMPLE_MARKER(info) #define SAMPLE_MARKER(info)
// Redefine the macros for platforms where SPS is supported. // 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_GET_RESPONSIVENESS() mozilla_sampler_get_responsiveness()
#define SAMPLER_SAVE() mozilla_sampler_save(); #define SAMPLER_SAVE() mozilla_sampler_save();
#define SAMPLER_GET_PROFILE() mozilla_sampler_get_profile(); #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); #define SAMPLE_MARKER(info) mozilla_sampler_add_marker(info);
// STORE_SEQUENCER: Because signals can interrupt our profile modification // STORE_SEQUENCER: Because signals can interrupt our profile modification