| Index: webkit/extensions/v8/profiler_extension.cc
|
| ===================================================================
|
| --- webkit/extensions/v8/profiler_extension.cc (revision 96482)
|
| +++ webkit/extensions/v8/profiler_extension.cc (working copy)
|
| @@ -6,13 +6,6 @@
|
|
|
| #include "build/build_config.h"
|
|
|
| -#if defined(QUANTIFY)
|
| -// this #define is used to prevent people from directly using pure.h
|
| -// instead of profiler.h
|
| -#define PURIFY_PRIVATE_INCLUDE
|
| -#include "base/third_party/purify/pure.h"
|
| -#endif // QUANTIFY
|
| -
|
| #if defined(USE_TCMALLOC) && defined(OS_POSIX) && !defined(OS_MACOSX)
|
| #include "third_party/tcmalloc/chromium/src/google/profiler.h"
|
| #endif
|
| @@ -69,9 +62,7 @@
|
|
|
| static v8::Handle<v8::Value> ProfilerStart(
|
| const v8::Arguments& args) {
|
| -#if defined(QUANTIFY)
|
| - QuantifyStartRecordingData();
|
| -#elif defined(USE_TCMALLOC) && defined(OS_POSIX) && !defined(OS_MACOSX)
|
| +#if defined(USE_TCMALLOC) && defined(OS_POSIX) && !defined(OS_MACOSX)
|
| ::ProfilerStart("chrome-profile");
|
| #endif
|
| return v8::Undefined();
|
| @@ -79,9 +70,7 @@
|
|
|
| static v8::Handle<v8::Value> ProfilerStop(
|
| const v8::Arguments& args) {
|
| -#if defined(QUANTIFY)
|
| - QuantifyStopRecordingData();
|
| -#elif defined(USE_TCMALLOC) && defined(OS_POSIX) && !defined(OS_MACOSX)
|
| +#if defined(USE_TCMALLOC) && defined(OS_POSIX) && !defined(OS_MACOSX)
|
| ::ProfilerStop();
|
| #endif
|
| return v8::Undefined();
|
| @@ -89,9 +78,6 @@
|
|
|
| static v8::Handle<v8::Value> ProfilerClearData(
|
| const v8::Arguments& args) {
|
| -#if defined(QUANTIFY)
|
| - QuantifyClearData();
|
| -#endif
|
| return v8::Undefined();
|
| }
|
|
|
| @@ -110,12 +96,6 @@
|
| v8::Local<v8::String> inputString = args[0]->ToString();
|
| char nameBuffer[256];
|
| inputString->WriteAscii(nameBuffer, 0, sizeof(nameBuffer)-1);
|
| -#if defined(QUANTIFY)
|
| - // make a copy since the Quantify function takes a char*, not const char*
|
| - char buffer[512];
|
| - base::snprintf(buffer, arraysize(buffer)-1, "%s", name);
|
| - QuantifySetThreadName(buffer);
|
| -#endif
|
| }
|
| return v8::Undefined();
|
| }
|
|
|