ndk icon indicating copy to clipboard operation
ndk copied to clipboard

ATrace C++ wrapper API

Open DanAlbert opened this issue 7 years ago • 0 comments

Forked from https://github.com/android-ndk/ndk/issues/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;
    };
}

DanAlbert avatar Oct 17 '18 20:10 DanAlbert