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

Unified Diff: src/IceCfg.h

Issue 1850163003: Subzero. Outputs liveness memory usage. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 4 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
« no previous file with comments | « no previous file | 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 f6f330909e064a7c6837871fbd0c0d2b624bca27..f9682e08bb256a300159b9d8ab9e3c72af9954dd 100644
--- a/src/IceCfg.h
+++ b/src/IceCfg.h
@@ -226,9 +226,11 @@ 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();
+ /// Get the total amount of memory held by the per-Cfg allocator.
+ size_t getTotalMemoryMB() const;
+
+ /// Get the current memory usage due to liveness data structures.
+ size_t getLivenessMemoryMB() const;
void emit();
void emitIAS();
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698