Lines Matching +full:system +full:- +full:trace
3 Perfetto can capture system traces on Linux. All ftrace-based data sources
4 and most other procfs / sysfs-based data sources are supported.
18 tools/install-build-deps
24 tools/gn gen --args='is_debug=false' out/linux
30 tools/ninja -C out/linux tracebox traced traced_probes perfetto
33 ## Capturing a trace
35 Due to Perfetto's [service-based architecture](/docs/concepts/service-model.md),
36 in order to capture a trace, the `traced` (session daemon) and `traced_probes`
37 (probes and ftrace-interop daemon) need to be running.
41 #### Capturing a trace with ftrace and /proc pollers, no SDK argument
43 If you are interested in overall system tracing and are not interested in
47 out/linux/tracebox -o trace_file.perfetto-trace --txt -c test/configs/scheduling.cfg
50 #### Testing the SDK integration in out-of-process tracing mode (system mode)
52 If you are using the Perfetto [tracing SDK](/docs/instrumentation/tracing-sdk)
53 and want to capture a fused trace that contains both system traces events and
54 your custom app trace events, you need to start the `traced` and `traced_probes`
62 [ftrace]: https://www.kernel.org/doc/Documentation/trace/ftrace.txt
66 tools/tmux -c test/configs/scheduling.cfg -C out/linux -n
71 2. Start the tracing session by running the pre-filled `perfetto` command in
72 the down-most [consumer] pane.
74 3. Detach from the tmux session with `Ctrl-B D`,or shut it down with
75 `tmux kill-session -t demo`. The script will then copy the trace to
76 `/tmp/trace.perfetto-trace`, as a binary-encoded protobuf (see
77 [TracePacket reference](/docs/reference/trace-packet-proto.autogen)).
79 ## Visualizing the trace
81 We can now explore the captured trace visually by using a dedicated web-based UI.
83 NOTE: The UI runs in-browser using JavaScript + Web Assembly. The trace
89 2. Click the **Open trace file** on the left-hand menu, and load the captured
90 trace (by default at `/tmp/trace.perfetto-trace`).
92 3. Explore the trace by zooming/panning using WASD, and mouse for expanding
96 Alternatively, you can explore the trace contents issuing SQL queries through
97 the [trace processor](/docs/analysis/trace-processor).