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

Unified Diff: runtime/vm/malloc_hooks_x64.cc

Issue 2771293003: Resubmission of native memory allocation info surfacing in Observatory. Fixed crashing tests and st… (Closed)
Patch Set: Resubmission of native memory allocation info surfacing in Observatory. Fixed crashing tests and st… Created 3 years, 9 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: runtime/vm/malloc_hooks_x64.cc
diff --git a/runtime/vm/malloc_hooks_x64.cc b/runtime/vm/malloc_hooks_x64.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2ec564b00954c1e05bb5d3d30ab4f08db497be39
--- /dev/null
+++ b/runtime/vm/malloc_hooks_x64.cc
@@ -0,0 +1,21 @@
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#include "vm/malloc_hooks.h"
+
+#include "vm/globals.h"
+
+#if defined(HOST_ARCH_X64)
+
+namespace dart {
+
+#if defined(DEBUG)
+const intptr_t kSkipCount = 6;
+#elif !(defined(PRODUCT) || defined(DEBUG))
+const intptr_t kSkipCount = 5;
+#endif
+
+} // namespace dart
+
+#endif // defined(HOST_ARCH_X64)

Powered by Google App Engine
This is Rietveld 408576698