[libcamera-devel] [PATCH v2 0/1] Use tracing with perfetto in ChromeOS
Harvey Yang
chenghaoyang at chromium.org
Fri Jul 22 14:00:27 CEST 2022
Hi all,
This is the second draft of the patch(es) that uses tracing with perfetto
instead of lttng when libcamera is used in ChromeOS, which already uses
perfetto to collect traces in most of the applications/services.
Thanks to Kieran's and Laurent's comments, I've updated the doc:
`tracing.rst`, which includes the instructions to test with perfetto trace
enabled. Please try and see how it goes.
I'm not sure if it's proper to split up the patch, as most of the
changes are dependent to each other... Please give me some suggestions
:)
BR,
Harvey
Harvey Yang (1):
Use tracing with perfetto in ChromeOS
Documentation/guides/tracing.rst | 114 ++++++++++++++----
include/libcamera/internal/tracepoints.h.in | 37 +++++-
.../internal/tracepoints/meson.build | 25 ++--
.../internal/tracepoints/pipeline.perfetto | 10 ++
.../internal/tracepoints/request.perfetto | 30 +++++
meson.build | 7 +-
src/android/cros/camera3_hal.cpp | 5 +
src/android/cros/meson.build | 1 +
src/libcamera/meson.build | 14 ++-
src/libcamera/pipeline_perfetto.cpp | 24 ++++
src/libcamera/request_perfetto.cpp | 73 +++++++++++
src/libcamera/tracepoints.cpp | 11 ++
12 files changed, 312 insertions(+), 39 deletions(-)
create mode 100644 include/libcamera/internal/tracepoints/pipeline.perfetto
create mode 100644 include/libcamera/internal/tracepoints/request.perfetto
create mode 100644 src/libcamera/pipeline_perfetto.cpp
create mode 100644 src/libcamera/request_perfetto.cpp
--
2.37.1.359.gd136c6c3e2-goog
More information about the libcamera-devel
mailing list