From 59375c56299f02af9707943c8a1c47c8499b470d Mon Sep 17 00:00:00 2001 From: Andre Bogus Date: Thu, 10 Dec 2020 00:03:23 +0100 Subject: [PATCH] feature-gate json dump in example --- examples/demo.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/demo.rs b/examples/demo.rs index 60b0087..98b6d5e 100644 --- a/examples/demo.rs +++ b/examples/demo.rs @@ -28,6 +28,7 @@ pub fn main() { flame::end("render"); flame::dump_html(&mut File::create("out.html").unwrap()).unwrap(); + #[cfg(feature = "json")] flame::dump_json(&mut File::create("out.json").unwrap()).unwrap(); flame::dump_stdout(); }