From 427059107a43f58f92aca96ba76e5f3900f895ea Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 26 Mar 2025 09:33:58 -0500 Subject: [PATCH] adding cargo-flamegraph and removing unneccessary deps --- flake.nix | 36 ++++++++++++++++++------------------ justfile | 2 ++ test_presentation.lisp | 3 ++- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/flake.nix b/flake.nix index c36841e..3b8c3a6 100644 --- a/flake.nix +++ b/flake.nix @@ -29,15 +29,29 @@ "rustfmt" ]) rust-analyzer - gtk-layer-shell - gtk3 vulkan-loader wayland wayland-protocols libxkbcommon pkg-config + ]; + + bi = with pkgs; [ + gcc + stdenv + gnumake + gdb + cmake + makeWrapper + vulkan-headers + vulkan-loader + vulkan-tools + libGL + cargo-flamegraph + + fontconfig + glib alsa-lib - gst_all_1.gst-devtools gst_all_1.gst-libav gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-good @@ -46,22 +60,8 @@ gst_all_1.gst-plugins-rs gst_all_1.gst-vaapi gst_all_1.gstreamer - gst_all_1.gstreamermm - ]; - - bi = with pkgs; [ - gcc - stdenv - gnumake - gdb - makeWrapper - vulkan-headers - vulkan-loader - vulkan-tools - libGL - # podofo - mpv + # mpv ffmpeg-full # yt-dlp diff --git a/justfile b/justfile index 70abe2c..ea6e7c0 100644 --- a/justfile +++ b/justfile @@ -11,6 +11,8 @@ clean: RUST_LOG=debug cargo clean test: RUST_LOG=debug cargo test --benches --tests --all-features -- --nocapture +profile: + cargo flamegraph --image-width 4000 -- {{ui}} {{file}} alias r := run alias c := clean diff --git a/test_presentation.lisp b/test_presentation.lisp index ae369b0..ce337ba 100644 --- a/test_presentation.lisp +++ b/test_presentation.lisp @@ -1,7 +1,8 @@ (slide :background (image :source "~/pics/frodo.jpg" :fit fill) (text "This is frodo" :font-size 70)) (slide (video :source "~/vids/test/camprules2024.mp4" :fit contain)) -(slide (video :source "~/vids/The magic of Rust's type system.mkv" :fit contain)) +(slide (video :source "~/vids/The Basics of Hanging Drywall.mkv" :fit contain)) +(slide (video :source "~/vids/Ladybird Is The Future Of Web Browsers.webm" :fit contain)) (song :id 7 :author "North Point Worship" :font "Quicksand Bold" :font-size 60 :title "Death Was Arrested"