Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: webkit/extensions/v8/profiler_extension.cc

Issue 7528010: Remove Purify and Quantify (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/focus/focus_manager_unittest.cc ('k') | webkit/tools/test_shell/run_all_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « views/focus/focus_manager_unittest.cc ('k') | webkit/tools/test_shell/run_all_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698