util/perfetto: Add one-time init
authorRob Clark <robdclark@chromium.org>
Mon, 22 Mar 2021 17:55:35 +0000 (10:55 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 10 May 2021 15:34:07 +0000 (15:34 +0000)
commitecfb00fb09a109b5de2cce21abe8be9ee66721bd
treed04f331349c8e4afd1528b3dcc97555ee0e5fb6b
parent7327c051d063b35b60f69023561c38d2db206ff4
util/perfetto: Add one-time init

Various places around mesa which might want to register a data-source,
etc, should call util_perfetto_init() first to ensure we connect to the
tracing service.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9901>
meson.build
src/util/meson.build
src/util/u_perfetto.cc [new file with mode: 0644]
src/util/u_perfetto.h [new file with mode: 0644]