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

Unified Diff: gin/public/v8_platform.h

Issue 2731913002: NotForReview: Expose the global memory budget (chromium side)
Patch Set: Add --simulate-memory-pressure Created 3 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 | « content/renderer/render_thread_impl.cc ('k') | gin/v8_platform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/public/v8_platform.h
diff --git a/gin/public/v8_platform.h b/gin/public/v8_platform.h
index 2eee1dd1b7b42b39a8277686c1169dfe599e6dac..f2fd2b7c0f1ccb61a4d22191cdbc4ac87fe099b3 100644
--- a/gin/public/v8_platform.h
+++ b/gin/public/v8_platform.h
@@ -54,6 +54,10 @@ class GIN_EXPORT V8Platform : public NON_EXPORTED_BASE(v8::Platform) {
void AddTraceStateObserver(v8::Platform::TraceStateObserver*) override;
void RemoveTraceStateObserver(v8::Platform::TraceStateObserver*) override;
+ bool IsGlobalMemoryBudgetAvailable() override;
+ int64_t GetGlobalMemoryBudget() override;
+ void SetGlobalMemoryBudgetUpdateInterval(uint32_t interval_ms) override;
+
private:
friend struct base::LazyInstanceTraitsBase<V8Platform>;
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | gin/v8_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698