Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63775069 authored by Yiwei Zhang's avatar Yiwei Zhang
Browse files

Add gpu_mem/gpu_mem_total to the atrace gfx and memory categories

Permission was added in I0808d8fe6a8416534fbec5a273d668700f0f7129.

Bug: 168902332
Test: take a systrace with gfx/memory/both and check ftrace enablement
Change-Id: I66253c54ce7a29f1fe051925ca00e6bd7c0def86
parent f30c0c52
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -99,7 +99,9 @@ struct TracingCategory {

/* Tracing categories */
static const TracingCategory k_categories[] = {
    { "gfx",        "Graphics",                 ATRACE_TAG_GRAPHICS, { } },
    { "gfx",        "Graphics",                 ATRACE_TAG_GRAPHICS, {
        { OPT,      "events/gpu_mem/gpu_mem_total/enable" },
    } },
    { "input",      "Input",                    ATRACE_TAG_INPUT, { } },
    { "view",       "View System",              ATRACE_TAG_VIEW, { } },
    { "webview",    "WebView",                  ATRACE_TAG_WEBVIEW, { } },
@@ -241,6 +243,7 @@ static const TracingCategory k_categories[] = {
        { OPT,      "events/kmem/ion_heap_grow/enable" },
        { OPT,      "events/kmem/ion_heap_shrink/enable" },
        { OPT,      "events/ion/ion_stat/enable" },
        { OPT,      "events/gpu_mem/gpu_mem_total/enable" },
    } },
    { "thermal",  "Thermal event", 0, {
        { REQ,      "events/thermal/thermal_temperature/enable" },