fix some tracy only and no default features

This commit is contained in:
Marcel Märtens 2021-03-27 16:41:27 +01:00
parent 6a95fb6b74
commit c77446a014
2 changed files with 2 additions and 7 deletions

View File

@ -129,7 +129,7 @@ impl Message {
#[cfg(debug_assertions)]
pub(crate) fn verify(&self, params: StreamParams) {
#[cfg(not(feature = "compression"))]
let _stream = stream;
let _params = params;
#[cfg(feature = "compression")]
if self.compressed != params.promises.contains(Promises::COMPRESSED) {
warn!(

View File

@ -102,12 +102,7 @@ impl<'a> System<'a> for Sys {
if let Some(entities) = entities {
let entity_count = entities.join().count();
export_tick.entity_count.set(entity_count as i64);
#[cfg(feature = "tracy")]
{
use common_base::tracy_client::{create_plot, Plot};
static ENTITY_COUNT: Plot = create_plot!("entity count");
ENTITY_COUNT.point(entity_count as f64);
}
common_base::plot!("entity count", entity_count as f64);
}
}