mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove heaptrack as it is now deprecated.
This commit is contained in:
parent
4a628125c4
commit
5beea76624
@ -8,6 +8,5 @@ edition = "2018"
|
||||
server = { package = "veloren-server", path = "../server" }
|
||||
common = { package = "veloren-common", path = "../common" }
|
||||
|
||||
heaptrack = "0.3.0"
|
||||
log = "0.4.8"
|
||||
pretty_env_logger = "0.3.0"
|
||||
|
@ -1,13 +1,10 @@
|
||||
#![deny(unsafe_code)]
|
||||
|
||||
use common::clock::Clock;
|
||||
use heaptrack::track_mem;
|
||||
use log::info;
|
||||
use server::{Event, Input, Server, ServerSettings};
|
||||
use std::time::Duration;
|
||||
|
||||
track_mem!();
|
||||
|
||||
const TPS: u64 = 30;
|
||||
|
||||
fn main() {
|
||||
|
@ -10,7 +10,7 @@ gl = ["gfx_device_gl"]
|
||||
discord = ["discord-rpc-sdk", "lazy_static"]
|
||||
singleplayer = ["server"]
|
||||
|
||||
default = ["gl", "singleplayer", "msgbox", "heaptrack"]
|
||||
default = ["gl", "singleplayer", "msgbox"]
|
||||
|
||||
[dependencies]
|
||||
common = { package = "veloren-common", path = "../common" }
|
||||
@ -60,7 +60,6 @@ frustum_query = "0.1.2"
|
||||
rodio = { git = "https://github.com/RustAudio/rodio", rev = "e5474a2"}
|
||||
cpal = "0.10"
|
||||
crossbeam = "0.7.2"
|
||||
heaptrack = { version = "0.3.0", optional = true }
|
||||
hashbrown = { version = "0.5.0", features = ["serde", "nightly"] }
|
||||
chrono = "0.4.7"
|
||||
rust-argon2 = "0.5"
|
||||
|
@ -38,11 +38,6 @@ use log::{self, debug, error, info};
|
||||
use simplelog::{CombinedLogger, Config, TermLogger, TerminalMode, WriteLogger};
|
||||
use std::{fs::File, mem, panic, str::FromStr};
|
||||
|
||||
#[cfg(feature = "heaptrack")]
|
||||
use heaptrack::track_mem;
|
||||
#[cfg(feature = "heaptrack")]
|
||||
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