Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to be able to enable/disable via command line argument #95

Open
joaoantoniocardoso opened this issue Feb 23, 2024 · 1 comment
Open

Comments

@joaoantoniocardoso
Copy link

joaoantoniocardoso commented Feb 23, 2024

Hi,

I was previously using version 0.10, and I was able to only enable the tracy client if my program received some CLI argument (enable-tracy, for instance).

On version 0.11, it seems to be only possible to enable/disable via feature, which would require my software to be rebuilt.

Is there any approach to that on 0.11?

Just to mention, I was doing (on 0.10), something like:

    // Redirects all gstreamer logs to tracing.
    gst::log::remove_default_log_function();
    // This fundamentally changes the CPU usage of our streams, so we are only enabling
    // this integration if absolutely necessary.
    if cli::manager::is_tracy() {
        tracing_gstreamer::integrate_events(); // This must be called before any gst::init()
        gst::init().unwrap();
        tracing_gstreamer::integrate_spans(); // This must be called after gst::init(), this is necessary to have GStreamer on tracy
    }

and

tracing-tracy = { version = "0.10.4", features = ["ondemand", "broadcast"] }
@nagisa
Copy link
Owner

nagisa commented Feb 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants