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

Unified Diff: third_party/tcmalloc/chromium/src/malloc_extension.cc

Issue 10820063: Enable memory profiler when TC_MALLOC is enabled for (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/chromium/src/malloc_extension.cc
===================================================================
--- third_party/tcmalloc/chromium/src/malloc_extension.cc (revision 148994)
+++ third_party/tcmalloc/chromium/src/malloc_extension.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2005, Google Inc.
+// Copyright (c) 2012, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
@@ -50,6 +50,7 @@
#include "gperftools/malloc_extension.h"
#include "gperftools/malloc_extension_c.h"
#include "maybe_threads.h"
+#include "thread_cache.h"
using STL_NAMESPACE::string;
using STL_NAMESPACE::vector;
@@ -220,6 +221,10 @@
}
}
+unsigned int MallocExtension::GetBytesAllocatedOnCurrentThread() {
+ return tcmalloc::ThreadCache::GetBytesAllocatedOnCurrentThread();
+}
+
// -----------------------------------------------------------------------
// Heap sampling support
// -----------------------------------------------------------------------
« no previous file with comments | « third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698