From e17349b426619430853e624696037cb4abe31796 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Thu, 8 Jun 2017 13:57:31 -0700 Subject: [PATCH] [Fuchsia] For profiling, export symbols, profile the VM (flutter/engine#3756) --- engine/src/flutter/runtime/dart_init.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/runtime/dart_init.cc b/engine/src/flutter/runtime/dart_init.cc index b132e1fd09..b07e4d490f 100644 --- a/engine/src/flutter/runtime/dart_init.cc +++ b/engine/src/flutter/runtime/dart_init.cc @@ -391,7 +391,10 @@ static std::vector ProfilingFlags(bool enable_profiling) { // Raspberry Pi devices but quite low for current smartphones. "--profile_period=1000", // This is the default. But just be explicit. - "--profiler"}; + "--profiler", + // This instructs the profiler to walk C++ frames, and to include + // them in the profile. + "--profile-vm"}; } else { return {"--no-profiler"}; }