mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +00:00 
			
		
		
		
	Merge pull request #58530 from Calinou/os-remove-dump-memory-to-file
Remove unimplemented `OS.dump_memory_to_file()` method
This commit is contained in:
		
						commit
						ce78d280b3
					
				
					 5 changed files with 0 additions and 19 deletions
				
			
		| 
						 | 
					@ -437,10 +437,6 @@ bool OS::is_stdout_verbose() const {
 | 
				
			||||||
	return ::OS::get_singleton()->is_stdout_verbose();
 | 
						return ::OS::get_singleton()->is_stdout_verbose();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void OS::dump_memory_to_file(const String &p_file) {
 | 
					 | 
				
			||||||
	::OS::get_singleton()->dump_memory_to_file(p_file.utf8().get_data());
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
struct OSCoreBindImg {
 | 
					struct OSCoreBindImg {
 | 
				
			||||||
	String path;
 | 
						String path;
 | 
				
			||||||
	Size2 size;
 | 
						Size2 size;
 | 
				
			||||||
| 
						 | 
					@ -667,7 +663,6 @@ void OS::_bind_methods() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ClassDB::bind_method(D_METHOD("is_debug_build"), &OS::is_debug_build);
 | 
						ClassDB::bind_method(D_METHOD("is_debug_build"), &OS::is_debug_build);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ClassDB::bind_method(D_METHOD("dump_memory_to_file", "file"), &OS::dump_memory_to_file);
 | 
					 | 
				
			||||||
	ClassDB::bind_method(D_METHOD("dump_resources_to_file", "file"), &OS::dump_resources_to_file);
 | 
						ClassDB::bind_method(D_METHOD("dump_resources_to_file", "file"), &OS::dump_resources_to_file);
 | 
				
			||||||
	ClassDB::bind_method(D_METHOD("print_resources_in_use", "short"), &OS::print_resources_in_use, DEFVAL(false));
 | 
						ClassDB::bind_method(D_METHOD("print_resources_in_use", "short"), &OS::print_resources_in_use, DEFVAL(false));
 | 
				
			||||||
	ClassDB::bind_method(D_METHOD("print_all_resources", "tofile"), &OS::print_all_resources, DEFVAL(""));
 | 
						ClassDB::bind_method(D_METHOD("print_all_resources", "tofile"), &OS::print_all_resources, DEFVAL(""));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -201,7 +201,6 @@ public:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	String get_model_name() const;
 | 
						String get_model_name() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void dump_memory_to_file(const String &p_file);
 | 
					 | 
				
			||||||
	void dump_resources_to_file(const String &p_file);
 | 
						void dump_resources_to_file(const String &p_file);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void print_resources_in_use(bool p_short = false);
 | 
						void print_resources_in_use(bool p_short = false);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -186,10 +186,6 @@ void OS::set_stderr_enabled(bool p_enabled) {
 | 
				
			||||||
	_stderr_enabled = p_enabled;
 | 
						_stderr_enabled = p_enabled;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void OS::dump_memory_to_file(const char *p_file) {
 | 
					 | 
				
			||||||
	//Memory::dump_static_mem_to_file(p_file);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static Ref<FileAccess> _OSPRF;
 | 
					static Ref<FileAccess> _OSPRF;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void _OS_printres(Object *p_obj) {
 | 
					static void _OS_printres(Object *p_obj) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -246,7 +246,6 @@ public:
 | 
				
			||||||
	virtual bool is_disable_crash_handler() const { return false; }
 | 
						virtual bool is_disable_crash_handler() const { return false; }
 | 
				
			||||||
	virtual void initialize_debugging() {}
 | 
						virtual void initialize_debugging() {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	virtual void dump_memory_to_file(const char *p_file);
 | 
					 | 
				
			||||||
	virtual void dump_resources_to_file(const char *p_file);
 | 
						virtual void dump_resources_to_file(const char *p_file);
 | 
				
			||||||
	virtual void print_resources_in_use(bool p_short = false);
 | 
						virtual void print_resources_in_use(bool p_short = false);
 | 
				
			||||||
	virtual void print_all_resources(String p_to_file = "");
 | 
						virtual void print_all_resources(String p_to_file = "");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -88,14 +88,6 @@
 | 
				
			||||||
				[b]Note:[/b] When [method delay_usec] is called on the main thread, it will freeze the project and will prevent it from redrawing and registering input until the delay has passed. When using [method delay_usec] as part of an [EditorPlugin] or [EditorScript], it will freeze the editor but won't freeze the project if it is currently running (since the project is an independent child process).
 | 
									[b]Note:[/b] When [method delay_usec] is called on the main thread, it will freeze the project and will prevent it from redrawing and registering input until the delay has passed. When using [method delay_usec] as part of an [EditorPlugin] or [EditorScript], it will freeze the editor but won't freeze the project if it is currently running (since the project is an independent child process).
 | 
				
			||||||
			</description>
 | 
								</description>
 | 
				
			||||||
		</method>
 | 
							</method>
 | 
				
			||||||
		<method name="dump_memory_to_file">
 | 
					 | 
				
			||||||
			<return type="void" />
 | 
					 | 
				
			||||||
			<param index="0" name="file" type="String" />
 | 
					 | 
				
			||||||
			<description>
 | 
					 | 
				
			||||||
				Dumps the memory allocation ringlist to a file (only works in debug).
 | 
					 | 
				
			||||||
				Entry format per line: "Address - Size - Description".
 | 
					 | 
				
			||||||
			</description>
 | 
					 | 
				
			||||||
		</method>
 | 
					 | 
				
			||||||
		<method name="dump_resources_to_file">
 | 
							<method name="dump_resources_to_file">
 | 
				
			||||||
			<return type="void" />
 | 
								<return type="void" />
 | 
				
			||||||
			<param index="0" name="file" type="String" />
 | 
								<param index="0" name="file" type="String" />
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue