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

Unified Diff: third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h

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 | « content/app/content_main_runner.cc ('k') | third_party/tcmalloc/chromium/src/malloc_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h
===================================================================
--- third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h (revision 148994)
+++ third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h (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
@@ -307,6 +307,10 @@
// malloc implementation during initialization.
static void Register(MallocExtension* implementation);
+ // On the current thread, return the total number of bytes allocated.
+ // (Currently only implemented in tcmalloc.)
+ static unsigned int GetBytesAllocatedOnCurrentThread();
+
// Returns detailed information about malloc's freelists. For each list,
// return a FreeListInfo:
struct FreeListInfo {
« no previous file with comments | « content/app/content_main_runner.cc ('k') | third_party/tcmalloc/chromium/src/malloc_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698