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

Unified Diff: src/IceCfg.h

Issue 1746613002: Subzero: Reduce copying of Liveness bitvectors. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix memory over-allocation Created 4 years, 10 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 | « src/IceBitVector.h ('k') | src/IceCfg.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.h
diff --git a/src/IceCfg.h b/src/IceCfg.h
index 64a454cdd8056449ae98bf9146c86ec447ef78c7..8cfe4748558a7e3c67cc1c5047d57f40cf574dfd 100644
--- a/src/IceCfg.h
+++ b/src/IceCfg.h
@@ -219,6 +219,10 @@ public:
const CfgNode *getCurrentNode() const { return CurrentNode; }
/// @}
+ /// Get the total amount of memory held by the per-Cfg allocator. This is
+ /// mostly meant for use inside a debugger.
+ static size_t getTotalMemoryMB();
+
void emit();
void emitIAS();
static void emitTextHeader(const IceString &MangledName, GlobalContext *Ctx,
« no previous file with comments | « src/IceBitVector.h ('k') | src/IceCfg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698