Flutter Engine
settings.cc
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "flutter/common/settings.h"
6 
7 #include <sstream>
8 
9 namespace flutter {
10 
12 
13 Settings::Settings() = default;
14 
15 Settings::Settings(const Settings& other) = default;
16 
17 Settings::~Settings() = default;
18 
19 std::string Settings::ToString() const {
20  std::stringstream stream;
21  stream << "Settings: " << std::endl;
22  stream << "vm_snapshot_data_path: " << vm_snapshot_data_path << std::endl;
23  stream << "vm_snapshot_instr_path: " << vm_snapshot_instr_path << std::endl;
24  stream << "isolate_snapshot_data_path: " << isolate_snapshot_data_path
25  << std::endl;
26  stream << "isolate_snapshot_instr_path: " << isolate_snapshot_instr_path
27  << std::endl;
28  stream << "application_library_path:" << std::endl;
29  for (const auto& path : application_library_path) {
30  stream << " " << path << std::endl;
31  }
32  stream << "temp_directory_path: " << temp_directory_path << std::endl;
33  stream << "dart_flags:" << std::endl;
34  for (const auto& dart_flag : dart_flags) {
35  stream << " " << dart_flag << std::endl;
36  }
37  stream << "start_paused: " << start_paused << std::endl;
38  stream << "trace_skia: " << trace_skia << std::endl;
39  stream << "trace_startup: " << trace_startup << std::endl;
40  stream << "trace_systrace: " << trace_systrace << std::endl;
41  stream << "dump_skp_on_shader_compilation: " << dump_skp_on_shader_compilation
42  << std::endl;
43  stream << "cache_sksl: " << cache_sksl << std::endl;
44  stream << "purge_persistent_cache: " << purge_persistent_cache << std::endl;
45  stream << "endless_trace_buffer: " << endless_trace_buffer << std::endl;
46  stream << "enable_dart_profiling: " << enable_dart_profiling << std::endl;
47  stream << "disable_dart_asserts: " << disable_dart_asserts << std::endl;
48  stream << "enable_observatory: " << enable_observatory << std::endl;
49  stream << "enable_observatory_publication: " << enable_observatory_publication
50  << std::endl;
51  stream << "observatory_host: " << observatory_host << std::endl;
52  stream << "observatory_port: " << observatory_port << std::endl;
53  stream << "use_test_fonts: " << use_test_fonts << std::endl;
54  stream << "enable_software_rendering: " << enable_software_rendering
55  << std::endl;
56  stream << "log_tag: " << log_tag << std::endl;
57  stream << "icu_initialization_required: " << icu_initialization_required
58  << std::endl;
59  stream << "icu_data_path: " << icu_data_path << std::endl;
60  stream << "assets_dir: " << assets_dir << std::endl;
61  stream << "assets_path: " << assets_path << std::endl;
62  stream << "frame_rasterized_callback set: " << !!frame_rasterized_callback
63  << std::endl;
64  stream << "old_gen_heap_size: " << old_gen_heap_size << std::endl;
65  return stream.str();
66 }
67 
68 } // namespace flutter
DEF_SWITCHES_START snapshot asset path
Definition: switches.h:32
fml::UniqueFD::element_type assets_dir
Definition: settings.h:215
std::string temp_directory_path
Definition: settings.h:95
std::string isolate_snapshot_instr_path
Definition: settings.h:79
bool endless_trace_buffer
Definition: settings.h:110
int64_t old_gen_heap_size
Definition: settings.h:236
uint32_t observatory_port
Definition: settings.h:142
std::string ToString() const
Definition: settings.cc:19
std::string isolate_snapshot_data_path
Definition: settings.h:77
static constexpr Phase kPhases[kCount]
Definition: settings.h:35
bool enable_dart_profiling
Definition: settings.h:111
bool enable_observatory_publication
Definition: settings.h:134
std::string observatory_host
Definition: settings.h:137
std::vector< std::string > dart_flags
Definition: settings.h:96
bool dump_skp_on_shader_compilation
Definition: settings.h:107
std::string icu_data_path
Definition: settings.h:211
std::vector< std::string > application_library_path
Definition: settings.h:89
bool enable_observatory
Definition: settings.h:129
bool disable_dart_asserts
Definition: settings.h:112
std::string vm_snapshot_data_path
Definition: settings.h:72
bool icu_initialization_required
Definition: settings.h:210
std::string vm_snapshot_instr_path
Definition: settings.h:74
std::string assets_path
Definition: settings.h:217
bool enable_software_rendering
Definition: settings.h:201
std::string log_tag
Definition: settings.h:204
bool purge_persistent_cache
Definition: settings.h:109
FrameRasterizedCallback frame_rasterized_callback
Definition: settings.h:221