Skip to content

Simplify usage and installation#29

Merged
sudara merged 9 commits intomainfrom
goodbye_singleton
Apr 22, 2025
Merged

Simplify usage and installation#29
sudara merged 9 commits intomainfrom
goodbye_singleton

Conversation

@sudara
Copy link
Copy Markdown
Owner

@sudara sudara commented Feb 6, 2024

This PR

  1. Simplifies installation by removing the singleton
  2. Bumps the google dependency to version 50.1

New usage:

#if PERFETTO
    MelatoninPerfetto tracingSession;
#endif

If you prefer to manually start the session, you can do so by passing false to the constructor and manually calling .beginSession and .endSession.

Old usage:

#if PERFETTO
    std::unique_ptr<perfetto::TracingSession> tracingSession;
#endif

#if PERFETTO
    MelatoninPerfetto::get().beginSession();
#endif

#if PERFETTO
    MelatoninPerfetto::get().endSession();
#endif

@sudara sudara changed the title Simplify usage and install Simplify usage and installation Aug 8, 2024
@sudara sudara merged commit e0d3f7e into main Apr 22, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant