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

Unified Diff: chrome/common/profiling/memlog_allocator_shim.h

Issue 2949703002: Add OOP memory logging allocator shim (Closed)
Patch Set: Multi-dll Created 3 years, 6 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
Index: chrome/common/profiling/memlog_allocator_shim.h
diff --git a/chrome/common/profiling/memlog_allocator_shim.h b/chrome/common/profiling/memlog_allocator_shim.h
new file mode 100644
index 0000000000000000000000000000000000000000..17da0e67c23b23c62fda71e4fe29c44577bb9575
--- /dev/null
+++ b/chrome/common/profiling/memlog_allocator_shim.h
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_PROFILING_MEMLOG_ALLOCATOR_SHIM_H_
+#define CHROME_COMMON_PROFILING_MEMLOG_ALLOCATOR_SHIM_H_
+
+#include "chrome/common/profiling/memlog_sender_pipe.h"
+
+// This is a temporary allocator shim for testing out-of-process heap
+// profiling.
+//
+// TODO(brettw) replace this with the base allocator shim, plus a way to get
+// the events at the Chrome layer.
+
+namespace profiling {
+
+void InitAllocatorShim(MemlogSenderPipe* sender_pipe);
+
+void AllocatorShimLogAlloc(void* address, size_t sz);
+void AllocatorShimLogFree(void* address);
+
+} // namespace profiling
+
+#endif // CHROME_COMMON_PROFILING_MEMLOG_ALLOCATOR_SHIM_H_

Powered by Google App Engine
This is Rietveld 408576698