Add command line switches for memory optimization patches recently merged.
authorPawel Forysiuk <p.forysiuk@samsung.com>
Fri, 10 Jul 2015 11:28:42 +0000 (13:28 +0200)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
This patch enables switches for following patches:

1. Limit memory allocations in MessagePumpForUIEf
   http://165.213.202.130/gerrit/81312
2. Add --limit-memory-allocation-in-schedule-delayed-work runtime option
   http://165.213.202.130/gerrit/81308
3. Defer creation of DisambiguationPopupEfl
   http://165.213.202.130/gerrit/81351
4. [MEM OPT] Grow semispace by N pages
   http://165.213.202.130/gerrit/81306
5. [MEM OPT] Shrink v8 new space to initial capacity in NewSpace::Shrink
   http://165.213.202.130/gerrit/81307

   This patch also enables ustream option "--enable-link-disambiguation-popup"
   for easier testing.
Reviewed by: Antonio Gomes, kavitha devara

Change-Id: I9b260f640c4f1bc6c16d8821c02a716965262f31
Signed-off-by: Pawel Forysiuk <p.forysiuk@samsung.com>
tizen_src/ewk/efl_integration/command_line_efl.cc

index 96f5e00..cda2ade 100644 (file)
@@ -129,4 +129,16 @@ void CommandLineEfl::AppendMemoryOptimizationSwitches(
 
   // For adding runtime switch to configure the discardable image cache size.
   command_line->AppendSwitchASCII(switches::kImageCacheSize, "0");
+
+  // For reuse of timers with message pump
+  command_line->AppendSwitch(switches::kLimitMemoryAllocationInScheduleDelayedWork);
+
+  // For testing link disambiguation popup
+  command_line->AppendSwitch(switches::kEnableLinkDisambiguationPopup);
+
+  // For controlling growing and shrinking step of V8 garbage collector
+  command_line->AppendSwitchASCII(switches::kJavaScriptFlags,
+      " --target-semi-space-size=1 --gc-global --always-compact "
+      " --shrink-new-space-to-initial-capacity=1 --custom-semi-space-growth=1 "
+      " --grow-semi-space-by-n-pages=0 ");
 }