mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-22 11:16:06 +08:00
Drop JSC code on background
Reviewed By: lexs Differential Revision: D3311037 fbshipit-source-id: e46559108c51f1cd163ed5c557d23c21f696ef88
This commit is contained in:
committed by
Facebook Github Bot 8
parent
bdab834036
commit
f948662013
@@ -371,6 +371,12 @@ void JSCExecutor::stopProfiler(const std::string &titleString, const std::string
|
||||
#endif
|
||||
}
|
||||
|
||||
void JSCExecutor::handleMemoryPressureUiHidden() {
|
||||
#ifdef WITH_JSC_MEMORY_PRESSURE
|
||||
JSHandleMemoryPressure(this, m_context, JSMemoryPressure::UI_HIDDEN);
|
||||
#endif
|
||||
}
|
||||
|
||||
void JSCExecutor::handleMemoryPressureModerate() {
|
||||
#ifdef WITH_JSC_MEMORY_PRESSURE
|
||||
JSHandleMemoryPressure(this, m_context, JSMemoryPressure::MODERATE);
|
||||
|
||||
Reference in New Issue
Block a user