commit | d3dcff8a716ae63a8379d550312b96742288ba20 | [log] [tgz] |
---|---|---|
author | Sami Kyostila <skyostil@chromium.org> | Mon Jan 18 12:58:31 2021 +0000 |
committer | Sami Kyostila <skyostil@chromium.org> | Mon Jan 18 12:58:31 2021 +0000 |
tree | b35322ee8a7ffa9416d69bc1009c67c9e8e2238f | |
parent | cd648ac8f4ea8895a7aea5ace9f9e3f8f7949f4b [diff] |
debian: Add traced_perf into Debian package Add the traced_perf binary and service to the Debian package. Test: $ fakeroot debian/rules binary $ sudo dpkg -i ../perfetto_11.0-1_amd64.deb $ sudo systemctl start traced traced-probes traced-perf $ perfetto \ -c - --txt \ -o /tmp/perf.pftrace \ <<EOF buffers: { size_kb: 63488 fill_policy: RING_BUFFER } buffers: { size_kb: 2048 fill_policy: DISCARD } data_sources: { config { name: "linux.perf" perf_event_config { all_cpus: true kernel_frames: true sampling_frequency: 40 } } } data_sources: { config { name: "linux.process_stats" target_buffer: 1 process_stats_config { scan_all_processes_on_start: true record_thread_names: true } } } duration_ms: 5000 EOF $ trace_to_text profile --perf /tmp/perf.pftrace $ pprof /tmp/perf_profile_NNNN/... Change-Id: Id2709c78e90d258f640faef906e5a76b17683179
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.