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

Unified Diff: runtime/bin/BUILD.gn

Issue 2625613002: Implemented basic heap memory allocation tracking in MallocHooks using hooks registered with tcmall… (Closed)
Patch Set: Created 3 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 | « runtime/BUILD.gn ('k') | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/BUILD.gn
diff --git a/runtime/bin/BUILD.gn b/runtime/bin/BUILD.gn
index 856f8e68c0d41434bdcfabb8cc90d46f42c700c2..dd34fc14d14bee5bcf8d326580efb074ebb9ebeb 100644
--- a/runtime/bin/BUILD.gn
+++ b/runtime/bin/BUILD.gn
@@ -295,8 +295,16 @@ executable("gen_snapshot") {
"vmservice_impl.h",
]
+ defines = []
include_dirs = [ ".." ]
+ if (dart_use_tcmalloc) {
+ deps += [ "//third_party/tcmalloc" ]
+ defines += [ "DART_USE_TCMALLOC" ]
+ include_dirs += [ "../third_party/tcmalloc/gperftools/src" ]
+ include_dirs += [ "../third_party/tcmalloc/include" ]
+ }
+
if (is_mac) {
libs = [
"CoreFoundation.framework",
« no previous file with comments | « runtime/BUILD.gn ('k') | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698