VDWASM-2217 fixup! Enable heap profiling in memory-infra traces 13/319413/6
authorAdam Bujalski <a.bujalski@samsung.com>
Fri, 31 Jan 2025 16:56:18 +0000 (17:56 +0100)
committerBot Blink <blinkbot@samsung.com>
Tue, 11 Feb 2025 12:29:02 +0000 (12:29 +0000)
Starting memory-infra not only in WRT but also in other applications
(e.g. HbbTv).

Change-Id: I5003752ba352b42f652e28cc14e3309ea4b896fd

tizen_src/ewk/efl_integration/command_line_efl.cc
wrt/src/app/wrt_content_main.cc

index a77b37d7e3ead758b53bac356d6286da26e1e5c2..a519bc8763331217dacc8f36bc33586e06a85c42 100644 (file)
@@ -122,6 +122,12 @@ content::MainFunctionParams CommandLineEfl::GetDefaultPortParams() {
     p_command_line->AppendSwitch(switches::kDisableRendererZygote);
 #endif
 
+#if BUILDFLAG(USE_ALLOCATOR_SHIM)
+  LOG(INFO) << "Appending memory-infra switches";
+  p_command_line->AppendSwitchNative("memlog", "all");
+  p_command_line->AppendSwitchNative("memlog-stack-mode", "native");
+#endif
+
   // XXX: Skia benchmarking should be only used for testing,
   // when enabled the following warning is printed to stderr:
   // "Enabling unsafe Skia benchmarking extension."
index c31369d79b6e97add1da8466d526d3a9cc787a2e..aea19df205405571ea5c5c0661ae9d4dc4a28b2e 100644 (file)
@@ -206,13 +206,6 @@ int WRTContentMain::Main(int argc, char** argv) {
 
   CommandLineEfl::Init(argc, argv);
 
-#if BUILDFLAG(USE_ALLOCATOR_SHIM)
-  LOG(INFO) << "Appending memory-infra switches";
-  auto* command_line = base::CommandLine::ForCurrentProcess();
-  command_line->AppendSwitchNative("memlog", "all");
-  command_line->AppendSwitchNative("memlog-stack-mode", "native");
-#endif
-
   electron::ElectronCommandLine::InitializeFromCommandLine();
 
   if (IsBrowserProcess()) {