mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Hook the tracking allocator into binaries. Doesn't do any monitoring/logging. Just provides the data when you want it.
This commit is contained in:
parent
eab3fce010
commit
551433f03a
@ -58,3 +58,4 @@ frustum_query = "0.1.2"
|
||||
rodio = { git = "https://github.com/desttinghim/rodio.git", rev = "dd93f905c1afefaac03c496a666ecab27d3e391b" }
|
||||
crossbeam = "^0.7.1"
|
||||
fxhash = "0.2"
|
||||
heaptrack = "0.3.0"
|
||||
|
@ -34,11 +34,14 @@ use crate::{
|
||||
audio::base::Genre, audio::AudioFrontend, menu::main::MainMenuState, settings::Settings,
|
||||
window::Window,
|
||||
};
|
||||
use heaptrack::track_mem;
|
||||
use log::{self, debug, error, info, warn};
|
||||
|
||||
use simplelog::{CombinedLogger, Config, TermLogger, WriteLogger};
|
||||
use std::{fs::File, mem, panic, str::FromStr};
|
||||
|
||||
track_mem!();
|
||||
|
||||
/// A type used to store state that is shared between all play states.
|
||||
pub struct GlobalState {
|
||||
settings: Settings,
|
||||
|
Loading…
Reference in New Issue
Block a user