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

Unified Diff: base/debug/profiler.cc

Issue 1607303002: Allocator cleanup: allocator_extension call directly into tcmalloc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_dep_alloc
Patch Set: rebase Created 4 years, 11 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 | « base/debug/profiler.h ('k') | chrome/browser/ui/browser_command_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/profiler.cc
diff --git a/base/debug/profiler.cc b/base/debug/profiler.cc
index 75e9aac0cba57e4784d21647faf1a2ee8372ae81..a205d1f82defab85666c915ef6309fac0479e109 100644
--- a/base/debug/profiler.cc
+++ b/base/debug/profiler.cc
@@ -56,6 +56,10 @@ void RestartProfilingAfterFork() {
ProfilerRegisterThread();
}
+bool IsProfilingSupported() {
+ return true;
+}
+
#else
void StartProfiling(const std::string& name) {
@@ -74,6 +78,10 @@ bool BeingProfiled() {
void RestartProfilingAfterFork() {
}
+bool IsProfilingSupported() {
+ return false;
+}
+
#endif
#if !defined(OS_WIN)
« no previous file with comments | « base/debug/profiler.h ('k') | chrome/browser/ui/browser_command_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698