Bug 1110874 - Delete payload passed to PROFILER_MARKER_PAYLOAD. r=kats

This commit is contained in:
Leonid V. Fedorenchik 2015-01-19 10:01:35 -05:00
parent d4a2ec7dbf
commit c06e5f6e4d

View File

@ -88,7 +88,7 @@ enum TracingMetadata {
// only recorded if a sample is collected while it is active, marker will always // only recorded if a sample is collected while it is active, marker will always
// be collected. // be collected.
#define PROFILER_MARKER(info) do {} while (0) #define PROFILER_MARKER(info) do {} while (0)
#define PROFILER_MARKER_PAYLOAD(info, payload) do {} while (0) #define PROFILER_MARKER_PAYLOAD(info, payload) do { nsAutoPtr<ProfilerMarkerPayload> payloadDeletor(payload); } while (0)
// Main thread specilization to avoid TLS lookup for performance critical use. // Main thread specilization to avoid TLS lookup for performance critical use.
#define PROFILER_MAIN_THREAD_LABEL(name_space, info, category) do {} while (0) #define PROFILER_MAIN_THREAD_LABEL(name_space, info, category) do {} while (0)