|
Blender V4.3
|
#include <stdio.h>Go to the source code of this file.
Macros | |
| #define | BLI_SYSTEM_PID_H <unistd.h> |
Functions | |
| int | BLI_cpu_support_sse2 (void) |
| int | BLI_cpu_support_sse42 (void) |
| void | BLI_system_backtrace (FILE *fp) |
| char * | BLI_cpu_brand_string (void) |
| void | BLI_hostname_get (char *buffer, size_t bufsize) |
| size_t | BLI_system_memory_max_in_megabytes (void) |
| int | BLI_system_memory_max_in_megabytes_int (void) |
| #define BLI_SYSTEM_PID_H <unistd.h> |
Definition at line 52 of file BLI_system.h.
| char * BLI_cpu_brand_string | ( | void | ) |
Get CPU brand, result is to be MEM_freeN()-ed.
Definition at line 128 of file system.c.
References __cpuid(), BLI_strdup(), and NULL.
| int BLI_cpu_support_sse42 | ( | void | ) |
Definition at line 160 of file system.c.
References __cpuid().
Referenced by blender::compositor::COM_is_denoise_supported(), blender::nodes::node_composite_denoise_cc::DenoiseOperation::is_oidn_supported(), and blender::nodes::node_composite_denoise_cc::node_composit_buts_denoise().
| void BLI_hostname_get | ( | char * | buffer, |
| size_t | bufsize ) |
Obtain the hostname from the system.
This simply determines the host's name, and doesn't do any DNS lookup of any IP address of the machine. As such, it's only usable for identification purposes, and not for reachability over a network.
| buffer | Character buffer to write the hostname into. |
| bufsize | Size of the character buffer, including trailing '\0'. |
Definition at line 175 of file system.c.
References BLI_strncpy().
Referenced by stampdata().
| void BLI_system_backtrace | ( | FILE * | fp | ) |
Write a backtrace into a file for systems which support it.
Definition at line 63 of file system.c.
References bli_load_symbols(), bli_windows_system_backtrace_exception_record(), bli_windows_system_backtrace_modules(), BLI_windows_system_backtrace_stack(), bli_windows_system_backtrace_threads(), current_exception, free(), NULL, and SIZE.
Referenced by _BLI_assert_print_backtrace(), arg_handle_log_show_backtrace_set(), callback_clg_fatal(), clog_abort_on_error_callback(), blender::gpu::debug::debug_callback(), sig_handle_crash_backtrace(), wm_ghost_init(), wm_ghost_init_background(), and wm_main_playanim_intern().
| size_t BLI_system_memory_max_in_megabytes | ( | void | ) |
Get maximum addressable memory in megabytes.
Definition at line 191 of file system.c.
Referenced by BLI_system_memory_max_in_megabytes_int().
| int BLI_system_memory_max_in_megabytes_int | ( | void | ) |
Get maximum addressable memory in megabytes (clamped to #INT_MAX).
Definition at line 201 of file system.c.
References BLI_system_memory_max_in_megabytes(), and min_zz().
Referenced by BKE_blendfile_userdef_from_defaults().