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

Commit aeb3ff4c authored by Yiwei Zhang's avatar Yiwei Zhang Committed by Automerger Merge Worker
Browse files

GpuMemTracer: remove the sleep workaround am: b7c974f8

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1472019

Change-Id: Ifcecc44f7e7f5600777e2c656dc016a33936bc3b
parents edf0f7ca b7c974f8
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -44,10 +44,6 @@ void GpuMemTracer::initialize(std::shared_ptr<GpuMem> gpuMem) {
    mGpuMem = gpuMem;
    perfetto::TracingInitArgs args;
    args.backends = perfetto::kSystemBackend;
    // TODO(b/160016498): Find a better way to wait for traced
    // Sleep for 30 seconds to make sure the data source is registered only
    // after traced starts.
    sleep(30);
    perfetto::Tracing::Initialize(args);
    registerDataSource();
    std::thread tracerThread(&GpuMemTracer::threadLoop, this);