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

ATrace C++ wrapper API #821

Open
DanAlbert opened this issue Oct 17, 2018 · 0 comments
Open

ATrace C++ wrapper API #821

DanAlbert opened this issue Oct 17, 2018 · 0 comments

Comments

@DanAlbert
Copy link
Member

DanAlbert commented Oct 17, 2018

Forked from #476

Possible API:

namespace android::trace  {
    class Trace  final {
    public:
        Trace  (const std::string& sectionName);
        Trace  (std::string_view sectionName);
        ~Trace  (); // Use RAII to close trace section
 
        static bool isEnabled() noexcept;
        static void beginSection(const std::string& sectionName) noexcept;
        static void beginSection(std::string_view sectionName) noexcept;
        static void endSection() noexcept;
    };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant