Back out rev ec6b18766795 (bug 705856) due to red.

This commit is contained in:
Justin Lebar 2011-12-15 10:23:23 -05:00
parent 873b2b62fc
commit 71a8a0bddb
4 changed files with 4 additions and 16 deletions

View File

@ -78,7 +78,7 @@ EXTRA_JS_MODULES = \
Profiler.jsm \
$(NULL)
ifneq (,$(filter Android Linux,$(OS_TARGET)))
ifeq ($(OS_TARGET),Android)
DEFINES += -DMOZ_ENABLE_PROFILER_SPS

View File

@ -86,7 +86,7 @@
#endif
// Redefine the macros for platforms where SPS is supported.
#if defined(ANDROID) || defined(XP_LINUX) || defined(XP_MACOSX) || defined(XP_WIN)
#if defined(ANDROID) || defined(XP_MACOSX) || defined(XP_WIN)
#include "sps_sampler.h"
@ -106,7 +106,6 @@
#define SAMPLER_GET_RESPONSIVENESS() NULL
#define SAMPLE_LABEL(name_space, info)
#define SAMPLE_MARKER(info)
#endif
#endif // ifndef SAMPLER_H
#endif

View File

@ -47,15 +47,6 @@
#define PATH_MAX_TOSTRING(x) #x
#define PATH_MAX_STRING(x) PATH_MAX_TOSTRING(x)
#if defined(__GLIBC__)
// glibc doesn't implement gettid(2).
#include <sys/syscall.h>
pid_t gettid()
{
return (pid_t) syscall(SYS_gettid);
}
#endif
#ifdef ENABLE_SPS_LEAF_DATA
/* a crapy version of getline, because it's not included in bionic */
static ssize_t getline(char **lineptr, size_t *n, FILE *stream)
@ -203,6 +194,7 @@ class Sampler::PlatformData : public Malloced {
: sampler_(sampler),
signal_handler_installed_(false),
vm_tgid_(getpid()),
// Glibc doesn't provide a wrapper for gettid(2).
vm_tid_(gettid()),
signal_sender_launched_(false) {
}

View File

@ -37,9 +37,6 @@
* ***** END LICENSE BLOCK ***** */
#include <stdlib.h>
#include <signal.h>
#include <pthread.h>
#include "base/atomicops.h"
#include "thread_helper.h"
#include "nscore.h"
#include "mozilla/TimeStamp.h"