android / android/ndk

ATrace C++ wrapper API

Open
#821 0 comments 0 reactions 0 assignees View on GitHub
c++ wrapper request
Dominant language
No language data
Stars
2.3k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

Forked from https://github.com/android-ndk/ndk/issues/476

Possible API:

```C++
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;
};
}
```

Contributor guide

Open the contributing guide

Research direction

Review the linked android-ndk/ndk#476 discussion and compare its requirements with the proposed android::trace::Trace API. Done means the proposed C++ wrapper is implemented with the listed RAII and static tracing operations, but this issue names no implementation files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.