| 1 | //! Memory graph configuration. |
| 2 | |
| 3 | use serderust-analyzer cargo serde 1.0.228 crate/::Deserializerust-analyzer cargo serde_core 1.0.228 de/Deserialize#; |
| 4 | |
| 5 | /// Memory-related configuration file options. |
| 6 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:)] |
| 7 | #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))] |
| 8 | #[cfg_attr(test, serde(deny_unknown_fields), derive(PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:))] |
| 9 | pub struct MemoryGraphConfigrust-analyzer cargo bottom 0.14.9 options/config/memory_graph/MemoryGraphConfig# { |
| 10 | // TODO: We probably want to make this an enum...? If we want to also support external legends |
| 11 | // (e.g. table-style, list-style) then we probably need a new system outright. |
| 12 | /// Where to place the legend for the memory chart widget. |
| 13 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) legend_positionrust-analyzer cargo bottom 0.14.9 options/config/memory_graph/MemoryGraphConfig#legend_position.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, |
| 14 | |
| 15 | /// Whether to collect and display cache and buffer memory. Not available on Windows. |
| 16 | #[cfg_attr(target_os = "windows", allow(dead_code))] |
| 17 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) cache_memoryrust-analyzer cargo bottom 0.14.9 options/config/memory_graph/MemoryGraphConfig#cache_memory.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 18 | |
| 19 | /// Whether to subtract ARC that can be freed from memory usage. |
| 20 | #[cfg_attr(not(feature = "zfs"), allow(dead_code))] |
| 21 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) free_arcrust-analyzer cargo bottom 0.14.9 options/config/memory_graph/MemoryGraphConfig#free_arc.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 22 | |
| 23 | /// Whether to use short GPU names in the memory widget. |
| 24 | #[cfg_attr(not(feature = "gpu"), allow(dead_code))] |
| 25 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) short_gpu_namesrust-analyzer cargo bottom 0.14.9 options/config/memory_graph/MemoryGraphConfig#short_gpu_names.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 26 | } |