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:
Acrimon 2019-07-24 01:43:27 +02:00
parent eab3fce010
commit 551433f03a
2 changed files with 4 additions and 0 deletions

View File

@ -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"

View File

@ -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,