blob: 12bfada08a9f9dfcd83020c6b71e62b04e89cb0c [file] [log] [blame]
Primiano Tucci2ab19f62020-07-01 21:28:31 +01001Unreleased:
2 Tracing service and probes:
Primiano Tucci9c294a42021-02-01 18:04:23 +01003 *
Primiano Tucci96755912021-01-05 12:15:17 +01004 Trace Processor:
Primiano Tuccie60b7c82021-03-03 14:09:35 +00005 *
6 UI:
7 *
8
9
10v13.0 - 2021-03-01:
11 Tracing service and probes:
12 * Added ability to sample callstacks using kernel tracepoints as timebase.
13 * Added abililty to record the perf timebase counter values into the trace,
14 both combined callstack+counter or counter-only.
15 * Added abillity to trigger traces based on VM pressure on Android. Requires
16 a dedicated tracing instance in $tracefs/instances/mm_events.
17 Trace Processor:
Lalit Maganti88eb6982021-03-01 14:28:51 +000018 * Added sorting mode to trace processor config to specify how trace
19 processor should sort events. The |force_full_sort| flag has been
20 deprecated (with replacement) and will be removed in the next version.
Primiano Tuccie60b7c82021-03-03 14:09:35 +000021 * Added ingestion of frame timeline events into the
22 {expected,actual}_frame_timeline_slice tables.
23 * Added support for Mali's trace_marker_write ftrace event.
24 * Added memory metric based on newer android_fastrpc kernel events.
Primiano Tucci96755912021-01-05 12:15:17 +010025 UI:
Primiano Tuccie60b7c82021-03-03 14:09:35 +000026 * Added flow events support for instant events and async tracks.
27 * Added support for Android frame timeline events. They allow inspecting
28 end-to-end expected vs actual app-to-surfaceflinger frame times.
29 * Added ability to switch between Canary and Stable channels in the UI.
30 * Added ability to drag&drop to open trace files.
31 * Changed UI serving infrastructure, old ui versions can be now retrieved by
32 directly opening https://ui.perfetto.dev/v12.1.269/ .
33 * Removed thread state track for threads that have no activity.
Sami Kyostilae8c0ff52021-02-16 11:26:16 +000034 SDK:
35 * Use process start time hashed with the process id as a unique process
36 identifier, allowing multiple independent users of the SDK in the same
37 process to interleave their events on shared tracks.
Sami Kyostila86b10c52021-02-16 16:50:42 +000038 * Record process and thread names into the trace.
Sami Kyostila67cdc662021-02-26 16:42:14 +000039 * Add ring buffer tracing support, i.e., periodic clearing of incremental
40 state.
Primiano Tuccie60b7c82021-03-03 14:09:35 +000041 Misc:
42 * Convert python scripts to python3.
Primiano Tucci96755912021-01-05 12:15:17 +010043
44
Primiano Tucci71a92392021-02-01 23:45:28 +010045v12.1 - 2021-02-01:
46 Misc:
47 * Fixed CHANGELOG which was missed in the 12.0 branch cut, causing
48 mis-labeling of the version code in the v12.x branch as v11.0..N
49
50
Primiano Tucci9c294a42021-02-01 18:04:23 +010051v12.0 - 2021-02-01:
52 Tracing service and probes:
53 * Added more helpful error messages if the client library is used without
54 having been initialized.
55 * Added //tools/record_android_trace script to facilitate recording traces
56 from Android devices, automating start + stop-via-ctrl+c + pull + open.
57 * Added auto-attachment of traces to Android bugreports if dumpstate is
58 invoked when a trace with bugreport_score > 0 is running.
59 SDK:
60 * Added ability to customize the timestamp of events via
61 ConvertTimestampToTraceTimeNs().
62 * Fixed support for category names that contain a space.
63 Trace Processor:
64 * Added ingestion and query support for Android end-to-end frame timing
65 events through the {actual, expected}_frame_timeline_slice tables.
66 * Added time-to-reportFullyDrawn (Android's API) to startup metrics.
67 * Fixed excessive memory usage when decoding traces containing callstacks
68 (https://github.com/google/perfetto/issues/83).
69 UI:
70 * Added ability to inspect the full trace config string from the
71 'Info and stats' page.
72 * Fixed 'TABLE/VIEW XXX already exists' in the Metrics page when running the
73 same metric twice.
74 * Fixed sorting of tracks using numeric sorting instead of lexicographic:
75 Thread {1, 2, 10, 11, 20} rather than Thread {1, 10, 11, 2, 20}.
76 * Fixed CSP-related bug that was preventing the UI to work on Firefox.
77 * Changed max zoom resolution to allow to zoom to sub-us events.
78
79
Primiano Tucci96755912021-01-05 12:15:17 +010080v11.0 - 2021-01-01:
81 Tracing service and probes:
Sami Kyostilaae504d42020-12-02 12:00:25 +000082 * Added trace packet interceptor API for rerouting trace data into
83 non-Perfetto systems.
Sami Kyostila6c151262020-12-15 18:48:51 +000084 * Added support for printing track events to the console.
Sami Kyostila2778ac82020-12-21 16:12:27 +000085 * Added a way to observe track event tracing sessions starting and
86 stopping.
Isabelle Taylor8546cee2020-10-30 14:43:53 +000087 Trace Processor:
Primiano Tucci96755912021-01-05 12:15:17 +010088 * Added "ancestor_slice" and "experimental_ancestor_stack_profile_callsite"
89 table functions to look up ancestors of CPU stack samples in profiler
90 tables.
91 * Added power metric reporting suspend/resume time periods.
Isabelle Taylor8546cee2020-10-30 14:43:53 +000092 UI:
Primiano Tucci96755912021-01-05 12:15:17 +010093 * Fixed CPU time calculation in example queries.
94 * Added tracks to debug Android SystemUI jank.
Isabelle Taylor8546cee2020-10-30 14:43:53 +000095
Primiano Tucci5d2be3a2020-12-01 20:42:45 +010096
97v10.0 - 2020-12-01:
98 Tracing service and probes:
99 * Fixed crash of tracing service if a client is unresponsive on the IPC
100 channel. Clients are disconnected if they don't respond to IPCs for 10s.
101 * Added cmdline arguments for integration within ChromeOS system image
102 (--{producer,consumer}-socket-{group,mode} for chmod-ing sockets).
103 * Changed path lookup logic for traced socket. /run/perfetto/ is used if the
104 directory exists, falling back on /tmp/ otherwise.
105 * Added support for kernel frame symbolization to the traced_perf callstack
106 sampler.
107 * Added support for resolving ftrace event arguments that require
108 symbolization against printk_format.
109 Trace Processor:
110 * Added .read command to inject a SQL query file, similar to the -q cmdline.
111 * Added trace-based metrics to root cause jank in Android System UI.
112 * Added symbolization support for ELF files on Windows for heap and
113 callstack profilers.
114 * Added support for symbolizing names of workqueue ftrace events.
115 * Improved Android startup metric with activity restart time.
116 UI:
117 * Added support for navigating flows with Ctrl+[ / Ctr+].
118 * Improved query result panel, moved to the bottom group allowing
119 simultaneous query result and timeline views.
120 * Fixed data corruption when recording traces via the WebUSB-based Record
121 page in the UI.
122
123
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000124v9.0 - 2020-11-01:
125 Tracing service and probes:
Sami Kyostilaf99230f2020-10-15 10:38:32 +0000126 * Added support for recording traces from a system service through the
127 client API.
128 * The client library now reconnects producers automatically if the
129 connection to the tracing service is lost. Also fixed crashes in ongoing
130 tracing sessions when a disconnect occurs.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000131 * Added support for dpu and g2d ftrace events.
132 * Enabled commit batching and producer side patching of chunks.
133 * Add support for symbolizing kernel symbols for ftrace events.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100134 Trace Processor:
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000135 * Fixed type affinity of string columns.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100136 UI:
Lalit Maganti09549602020-10-01 16:47:00 +0100137 * Added initial support for running metrics from the UI.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000138 * Added support for displaying all flows when a slice or area is selected.
139 * Highlight nodes that match the 'focus' string in the flamegraph.
140 * Added search within slice args.
141 * Fixed details panel height and moved query panel into details panel.
142 * Enabled re-sharing of postMessage traces by echoing back the original URL.
143 * Improved record page error messages.
Lalit Maganti09549602020-10-01 16:47:00 +0100144
145
146v8.0 - 2020-10-01:
147 Tracing service and probes:
148 * Added API for querying registered data sources and their capabilities.
149 * Added support for profiling heap allocations on Linux via LD_PRELOAD.
150 * Fixed possible race when initializing the consumer library.
151 * Fixed subtle bugs on systems with 16KB system pages.
152 Trace Processor:
153 * Added a table which lists available metrics.
154 * Added Python bindings on PyPi in the 'perfetto' package.
155 * Added support for running trace_processor_shell on Android.
156 * Added per-process metrics for GPU memory usage.
157 * Added support for exporting flow events to JSON.
158 * Added dynamic tables for navigating between slices of flows.
159 UI:
160 * Changed time marking: horizontal selection doesn't gray out anymore,
161 pressing 'm' marks the range.
162 * Added initial support for displaying flow event arrows.
163 * Improved ordering of all thread tracks under process grouping.
164 * Fixed UI crashes due to metric errors
165 * Fixed selection of thread state slices.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100166
167
Primiano Tucci816506e2020-09-01 18:13:12 +0200168v7.0 - 2020-09-01:
169 Tracing service and probes:
170 * Added auto-reconnection to the SDK. Tracing::Initialize() now retries in
171 the background, instead of failing, if the tracing service is unrechable.
172 * Added support for recording cpuhp (CPU hotplug) ftrace events.
173 * Fixed heap profiling unwinding on multi-ABI systems.
174 * Fixed reporting of live objects in the native heap profiler when using
175 --dump-at-max.
176 * Fixed crash when writing trace events with field nesting level > 10.
177 Trace Processor:
178 * Added Python bindings, see
179 https://perfetto.dev/docs/analysis/trace-processor#python-api .
180 * Added ingestion for Chrome instant events and Chrome flow events.
181 * Added ingestion for Android GPU memory events and sched_blocked_reason.
182 * Added WebView power metric.
183 * Added support for WSL1 where Async I/O is not available.
184 * Improved detection of Android suspend/resume events.
185 UI:
186 * Added GPU memory recording controls and ingestion code. Requires a recent
187 Android 12+ kernel.
188 * Added details panel for flow events, showed when the user selects a slice
189 involved in a flow (arrows in the UI are still being worked on).
190 * Added instant events rendering.
191 * Added Google Analytics.
192 * Fixed I/O thread-states in 4.14 kernels to deal with the removal of
193 wake-kill using sched_blocked_reason.
194 * Fixed "Perfetto UI started debugging this browser" showing when opening
195 the UI and the Chrome extension is installed.
196 Misc:
197 * Update language to comply with Android's inclusive language guidance.
198
199
Primiano Tucci6d7badc2020-07-31 19:03:27 +0200200v6.0 - 2020-08-01:
201 Tracing service and probes:
202 * Added ftrace thermal events.
203 * Added support for custom allocators to the heap profiler. Allows
204 developers to report memory allocations that are not done through malloc.
205 * Added detailed timestamping of key tracing session events.
206 * Added support for building tracing services on CrOS (system-wide tracing).
207 * Fixed filtering out of stale ftrace data that predates the beginning of
208 the tracing session.
209 Trace Processor:
210 * Improved profile symbolizer. PERFETTO_SYMBOLIZER_MODE=index discovers
211 symbol files by build id rather than name.
212 * Added screen-state Android metrics.
213 UI:
214 * Added 'Info and stats' page to debug data losses and trace stats.
215 * Added full cmdline to process detail panel.
216 * Improved performance of async tracks using quantized queries.
217 * Improved performance of counter and slice tracks for long traces by
218 pre-caching quantized track data.
219 * Improved actionablility of crash dialog when the Wasm module OOMs.
220
221
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100222v5.0 - 2020-07-01:
223 Tracing service and probes:
224 * Added gpu_mem_total ftrace event.
225 * Added TrustZone (scm start/end) event.
226 * Added protos for GPU memory tracking and updated render stages proto.
227 * Added time_in_state probe for Android (CPU time broken down by frequency).
228
229 Trace Processor:
230 * Added ingestion of IRQ and SoftIRQ events.
231 * Added ingestion of workqueue events. KAddr symbolization still missing.
232 * Added ingestion of voltage regulators and board clock change events.
233 * Added ingestion of new ION ion_buffer_create/destroy events.
234 * Added ingestion of TrustZone (scm start/end) events.
235 * Added SurfaceFlinger derived events (tracking of missed frames).
236 * Changed parsing of scheduler task state on 4.14 kernels.
237 * Changed importing of Java heap graphs: allow partial dumps.
238 * Improved performance of the SQL query engine.
239
240 UI:
241 * Added dedicated query page for custom SQL queries.
242 * Added navigation links for Binder slices.
243 * Removed overview summary mode when zoomed out.
244 * Fixed recording page when targeting Android P.
245 * Improved slice pan/zoom performance by quantizing.