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 | |
11 | constexpr FrameTiming::Phase FrameTiming::kPhases[FrameTiming::kCount]; |
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 << "observatory_host: "<< observatory_host << std::endl; |
50 | stream << "observatory_port: "<< observatory_port << std::endl; |
51 | stream << "use_test_fonts: "<< use_test_fonts << std::endl; |
52 | stream << "enable_software_rendering: "<< enable_software_rendering |
53 | << std::endl; |
54 | stream << "log_tag: "<< log_tag << std::endl; |
55 | stream << "icu_initialization_required: "<< icu_initialization_required |
56 | << std::endl; |
57 | stream << "icu_data_path: "<< icu_data_path << std::endl; |
58 | stream << "assets_dir: "<< assets_dir << std::endl; |
59 | stream << "assets_path: "<< assets_path << std::endl; |
60 | stream << "frame_rasterized_callback set: "<< !!frame_rasterized_callback |
61 | << std::endl; |
62 | stream << "old_gen_heap_size: "<< old_gen_heap_size << std::endl; |
63 | return stream.str(); |
64 | } |
65 | |
66 | } // namespace flutter |
67 |