blob: 79050a56f1016e2df0c7cf8512786d906953c925 [file] [log] [blame]
Primiano Tucci2ab19f62020-07-01 21:28:31 +01001Unreleased:
2 Tracing service and probes:
Primiano Tucci5f303142021-06-02 10:28:50 +01003 *
4 Trace Processor:
5 *
6 UI:
7 *
8 SDK:
9 *
10
11
12v16.0 - 2021-06-01:
13 Tracing service and probes:
Primiano Tucci235610f2021-05-24 20:22:43 +010014 * Added support for building most targets (including traced, SDK and
15 trace_processor_shell) from Windows using either clang-cl or MSVC 2019.
16 * Added tracebox, a monolithic binary to capture traces with one command
17 on Linux and older versions of Android (tested on Android Oreo).
Primiano Tucci5f303142021-06-02 10:28:50 +010018 * Added support for service-side field-level filtering of traces. The
19 consumer can pass a filter bytecode and ensure that non-allowed fields
20 are never emitted in output.
21 * Added reporting of service version and producer SDK version into the trace
22 and `perfetto --query`.
23 * Fixed compatibility with Android versions older than Pie (for sideloading)
24 which cause failures when trying to enable atrace categories.
Primiano Tucci96755912021-01-05 12:15:17 +010025 Trace Processor:
Primiano Tucci5f303142021-06-02 10:28:50 +010026 * Added new RPC interface based on a bidirectional binary pipe. This allows
27 to simplify integration with out-of-process users. The existing --httpd
28 interface now exposes a single /rpc endpoint. Older endpoints are still
29 available for legacy clients.
30 * Added support for counters and instant events in JSON traces.
31 * Fixed support of displayTimeUnit in JSON traces.
Primiano Tuccie60b7c82021-03-03 14:09:35 +000032 UI:
Primiano Tucci41327402021-06-01 20:28:00 +010033 * Added warning dialog when trying to use a trace_processor_shell --httpd
34 which is too old.
35 * Added warning dialog when trying to use a trace_processor_shell --httpd
36 RPC instance from more than one tab.
Primiano Tucci5f303142021-06-02 10:28:50 +010037 * Added links to convert the trace to JSON or systrace directly from the UI.
38 * Changed track sorting logic. Tracks are now sorted in groups (e.g.,
39 scheduling tracks, summary tracks, frame timeline tracks).
40 * Fixed crashes happening flakily when pushing traces via window.open().
Primiano Tucci8220de22021-05-05 09:53:37 +010041
42
43v15.0 - 2021-05-05:
44 Tracing service and probes:
45 * Added support for {host,target}=aarch64 standalone builds.
46 * Added --background cmdline switch to traced and traced_probes services.
47 * Changed trigger_perfetto to ignore unknown command line arguments to
48 preserve forward compatibility.
49 * Added -a / --app cmdline argument to tools/record_android_trace.
50 Trace Processor:
51 * Added sanitisation of keys in nested debug annotation dictionaries.
52 * Changed Android startup metric: count CPU time of JIT thread pool, report
53 timestamp of activities during startup.
54 * Changed android_surfaceflinger metric, added missed frame counters.
55 * Changed version of SQLite to 3.35.4.
56 * Fixed importing of JSON traces with decimal (sub-us) timestamp.
57 * Fixed prepending "debug." prefix to debug annotations with non-interned
58 names.
59 UI:
60 * Added support to visualize the lifetime of individual dmabuf allocations
61 as async slices (datasource: already existing ftrace dmabuf event).
62 * Fixed visualization of unfinished slices to extend to the end of the
63 viewport.
64 SDK:
Alexander Timin129bdcf2021-04-16 11:36:37 +000065 * Added support for passing arbitrary number of debug annotations to
66 TRACE_EVENT and combining them with lambdas.
67 * Added support for writing typed TrackEvent arguments using TRACE_EVENT
68 inline without lambdas.
Primiano Tucci8220de22021-05-05 09:53:37 +010069 * Changed ConvertTimestampToTraceTimeNs to be a member of
70 TraceTimestampTraits<T> struct instead of a standalone function.
71 * Changed TracedValue to use nested DebugAnnotation proto instead of
72 DebugAnnotation::NestedValue.
Primiano Tucci7454e1a2021-04-01 13:03:19 +010073
74
75v14.0 - 2021-04-01:
76 Tracing service and probes:
77 * Added support for polling power rails on Android from the newer
78 IPowerStats AIDL interface (previously using only the HAL interface).
79 * Fixed native heap profiler crash when ABI of heapprofd and profiled
80 process mismatch.
81 * Changed encoding format of Anroid managed heap profiler to reduce heap
82 dump sizes by delta-encoding object IDs.
83 Trace Processor:
84 * Added activity create/resume, layout inflation and resource timings to
85 the Android startup metric.
86 * Added chrome metadata key/value pairs (e.g. chrome version) into the
87 `metadata` table with 'cr-' prefixed keys.
88 * Added dma-buf-based memory metrics reporting total/avg/min/max dmabuf
89 allocation per-dmabuf-heap and per-process.
90 * Removed |force_full_sort| flag from config. This has been replaced
91 by setting the sorting mode to force a full sort.
92 UI:
93 * Added tools/symbolize-ui-crash script to resolve crash reports via
94 TypeScript source maps.
95 * Fixed newlines when copying Android event log lines into the clipboard.
96 * Fixed crash when selecting "Did not finish" slices.
97 * Fixed OOM dialog to give actionable instructions when opening large traces
98 rather than suggesting to file a bug.
Sami Kyostilaedf7c862021-03-11 13:33:35 +000099 SDK:
Primiano Tucci7454e1a2021-04-01 13:03:19 +0100100 * Added /meson.build for bundling /sdk/perfetto.{cc,h} in Meson builds.
101 * Added support for counter trace points with the TRACE_COUNTER macro.
102
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000103
104v13.0 - 2021-03-01:
105 Tracing service and probes:
106 * Added ability to sample callstacks using kernel tracepoints as timebase.
107 * Added abililty to record the perf timebase counter values into the trace,
108 both combined callstack+counter or counter-only.
109 * Added abillity to trigger traces based on VM pressure on Android. Requires
110 a dedicated tracing instance in $tracefs/instances/mm_events.
111 Trace Processor:
Lalit Maganti88eb6982021-03-01 14:28:51 +0000112 * Added sorting mode to trace processor config to specify how trace
113 processor should sort events. The |force_full_sort| flag has been
114 deprecated (with replacement) and will be removed in the next version.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000115 * Added ingestion of frame timeline events into the
116 {expected,actual}_frame_timeline_slice tables.
117 * Added support for Mali's trace_marker_write ftrace event.
118 * Added memory metric based on newer android_fastrpc kernel events.
Primiano Tucci96755912021-01-05 12:15:17 +0100119 UI:
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000120 * Added flow events support for instant events and async tracks.
121 * Added support for Android frame timeline events. They allow inspecting
122 end-to-end expected vs actual app-to-surfaceflinger frame times.
123 * Added ability to switch between Canary and Stable channels in the UI.
124 * Added ability to drag&drop to open trace files.
125 * Changed UI serving infrastructure, old ui versions can be now retrieved by
126 directly opening https://ui.perfetto.dev/v12.1.269/ .
127 * Removed thread state track for threads that have no activity.
Sami Kyostilae8c0ff52021-02-16 11:26:16 +0000128 SDK:
129 * Use process start time hashed with the process id as a unique process
130 identifier, allowing multiple independent users of the SDK in the same
131 process to interleave their events on shared tracks.
Sami Kyostila86b10c52021-02-16 16:50:42 +0000132 * Record process and thread names into the trace.
Sami Kyostila67cdc662021-02-26 16:42:14 +0000133 * Add ring buffer tracing support, i.e., periodic clearing of incremental
134 state.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000135 Misc:
136 * Convert python scripts to python3.
Primiano Tucci96755912021-01-05 12:15:17 +0100137
138
Primiano Tucci71a92392021-02-01 23:45:28 +0100139v12.1 - 2021-02-01:
140 Misc:
141 * Fixed CHANGELOG which was missed in the 12.0 branch cut, causing
142 mis-labeling of the version code in the v12.x branch as v11.0..N
143
144
Primiano Tucci9c294a42021-02-01 18:04:23 +0100145v12.0 - 2021-02-01:
146 Tracing service and probes:
147 * Added more helpful error messages if the client library is used without
148 having been initialized.
149 * Added //tools/record_android_trace script to facilitate recording traces
150 from Android devices, automating start + stop-via-ctrl+c + pull + open.
151 * Added auto-attachment of traces to Android bugreports if dumpstate is
152 invoked when a trace with bugreport_score > 0 is running.
153 SDK:
154 * Added ability to customize the timestamp of events via
155 ConvertTimestampToTraceTimeNs().
156 * Fixed support for category names that contain a space.
157 Trace Processor:
158 * Added ingestion and query support for Android end-to-end frame timing
159 events through the {actual, expected}_frame_timeline_slice tables.
160 * Added time-to-reportFullyDrawn (Android's API) to startup metrics.
161 * Fixed excessive memory usage when decoding traces containing callstacks
162 (https://github.com/google/perfetto/issues/83).
163 UI:
164 * Added ability to inspect the full trace config string from the
165 'Info and stats' page.
166 * Fixed 'TABLE/VIEW XXX already exists' in the Metrics page when running the
167 same metric twice.
168 * Fixed sorting of tracks using numeric sorting instead of lexicographic:
169 Thread {1, 2, 10, 11, 20} rather than Thread {1, 10, 11, 2, 20}.
170 * Fixed CSP-related bug that was preventing the UI to work on Firefox.
171 * Changed max zoom resolution to allow to zoom to sub-us events.
172
173
Primiano Tucci96755912021-01-05 12:15:17 +0100174v11.0 - 2021-01-01:
175 Tracing service and probes:
Sami Kyostilaae504d42020-12-02 12:00:25 +0000176 * Added trace packet interceptor API for rerouting trace data into
177 non-Perfetto systems.
Sami Kyostila6c151262020-12-15 18:48:51 +0000178 * Added support for printing track events to the console.
Sami Kyostila2778ac82020-12-21 16:12:27 +0000179 * Added a way to observe track event tracing sessions starting and
180 stopping.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000181 Trace Processor:
Primiano Tucci96755912021-01-05 12:15:17 +0100182 * Added "ancestor_slice" and "experimental_ancestor_stack_profile_callsite"
183 table functions to look up ancestors of CPU stack samples in profiler
184 tables.
185 * Added power metric reporting suspend/resume time periods.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000186 UI:
Primiano Tucci96755912021-01-05 12:15:17 +0100187 * Fixed CPU time calculation in example queries.
188 * Added tracks to debug Android SystemUI jank.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000189
Primiano Tucci5d2be3a2020-12-01 20:42:45 +0100190
191v10.0 - 2020-12-01:
192 Tracing service and probes:
193 * Fixed crash of tracing service if a client is unresponsive on the IPC
194 channel. Clients are disconnected if they don't respond to IPCs for 10s.
195 * Added cmdline arguments for integration within ChromeOS system image
196 (--{producer,consumer}-socket-{group,mode} for chmod-ing sockets).
197 * Changed path lookup logic for traced socket. /run/perfetto/ is used if the
198 directory exists, falling back on /tmp/ otherwise.
199 * Added support for kernel frame symbolization to the traced_perf callstack
200 sampler.
201 * Added support for resolving ftrace event arguments that require
202 symbolization against printk_format.
203 Trace Processor:
204 * Added .read command to inject a SQL query file, similar to the -q cmdline.
205 * Added trace-based metrics to root cause jank in Android System UI.
206 * Added symbolization support for ELF files on Windows for heap and
207 callstack profilers.
208 * Added support for symbolizing names of workqueue ftrace events.
209 * Improved Android startup metric with activity restart time.
210 UI:
211 * Added support for navigating flows with Ctrl+[ / Ctr+].
212 * Improved query result panel, moved to the bottom group allowing
213 simultaneous query result and timeline views.
214 * Fixed data corruption when recording traces via the WebUSB-based Record
215 page in the UI.
216
217
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000218v9.0 - 2020-11-01:
219 Tracing service and probes:
Sami Kyostilaf99230f2020-10-15 10:38:32 +0000220 * Added support for recording traces from a system service through the
221 client API.
222 * The client library now reconnects producers automatically if the
223 connection to the tracing service is lost. Also fixed crashes in ongoing
224 tracing sessions when a disconnect occurs.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000225 * Added support for dpu and g2d ftrace events.
226 * Enabled commit batching and producer side patching of chunks.
227 * Add support for symbolizing kernel symbols for ftrace events.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100228 Trace Processor:
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000229 * Fixed type affinity of string columns.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100230 UI:
Lalit Maganti09549602020-10-01 16:47:00 +0100231 * Added initial support for running metrics from the UI.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000232 * Added support for displaying all flows when a slice or area is selected.
233 * Highlight nodes that match the 'focus' string in the flamegraph.
234 * Added search within slice args.
235 * Fixed details panel height and moved query panel into details panel.
236 * Enabled re-sharing of postMessage traces by echoing back the original URL.
237 * Improved record page error messages.
Lalit Maganti09549602020-10-01 16:47:00 +0100238
239
240v8.0 - 2020-10-01:
241 Tracing service and probes:
242 * Added API for querying registered data sources and their capabilities.
243 * Added support for profiling heap allocations on Linux via LD_PRELOAD.
244 * Fixed possible race when initializing the consumer library.
245 * Fixed subtle bugs on systems with 16KB system pages.
246 Trace Processor:
247 * Added a table which lists available metrics.
248 * Added Python bindings on PyPi in the 'perfetto' package.
249 * Added support for running trace_processor_shell on Android.
250 * Added per-process metrics for GPU memory usage.
251 * Added support for exporting flow events to JSON.
252 * Added dynamic tables for navigating between slices of flows.
253 UI:
254 * Changed time marking: horizontal selection doesn't gray out anymore,
255 pressing 'm' marks the range.
256 * Added initial support for displaying flow event arrows.
257 * Improved ordering of all thread tracks under process grouping.
258 * Fixed UI crashes due to metric errors
259 * Fixed selection of thread state slices.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100260
261
Primiano Tucci816506e2020-09-01 18:13:12 +0200262v7.0 - 2020-09-01:
263 Tracing service and probes:
264 * Added auto-reconnection to the SDK. Tracing::Initialize() now retries in
265 the background, instead of failing, if the tracing service is unrechable.
266 * Added support for recording cpuhp (CPU hotplug) ftrace events.
267 * Fixed heap profiling unwinding on multi-ABI systems.
268 * Fixed reporting of live objects in the native heap profiler when using
269 --dump-at-max.
270 * Fixed crash when writing trace events with field nesting level > 10.
271 Trace Processor:
272 * Added Python bindings, see
273 https://perfetto.dev/docs/analysis/trace-processor#python-api .
274 * Added ingestion for Chrome instant events and Chrome flow events.
275 * Added ingestion for Android GPU memory events and sched_blocked_reason.
276 * Added WebView power metric.
277 * Added support for WSL1 where Async I/O is not available.
278 * Improved detection of Android suspend/resume events.
279 UI:
280 * Added GPU memory recording controls and ingestion code. Requires a recent
281 Android 12+ kernel.
282 * Added details panel for flow events, showed when the user selects a slice
283 involved in a flow (arrows in the UI are still being worked on).
284 * Added instant events rendering.
285 * Added Google Analytics.
286 * Fixed I/O thread-states in 4.14 kernels to deal with the removal of
287 wake-kill using sched_blocked_reason.
288 * Fixed "Perfetto UI started debugging this browser" showing when opening
289 the UI and the Chrome extension is installed.
290 Misc:
291 * Update language to comply with Android's inclusive language guidance.
292
293
Primiano Tucci6d7badc2020-07-31 19:03:27 +0200294v6.0 - 2020-08-01:
295 Tracing service and probes:
296 * Added ftrace thermal events.
297 * Added support for custom allocators to the heap profiler. Allows
298 developers to report memory allocations that are not done through malloc.
299 * Added detailed timestamping of key tracing session events.
300 * Added support for building tracing services on CrOS (system-wide tracing).
301 * Fixed filtering out of stale ftrace data that predates the beginning of
302 the tracing session.
303 Trace Processor:
304 * Improved profile symbolizer. PERFETTO_SYMBOLIZER_MODE=index discovers
305 symbol files by build id rather than name.
306 * Added screen-state Android metrics.
307 UI:
308 * Added 'Info and stats' page to debug data losses and trace stats.
309 * Added full cmdline to process detail panel.
310 * Improved performance of async tracks using quantized queries.
311 * Improved performance of counter and slice tracks for long traces by
312 pre-caching quantized track data.
313 * Improved actionablility of crash dialog when the Wasm module OOMs.
314
315
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100316v5.0 - 2020-07-01:
317 Tracing service and probes:
318 * Added gpu_mem_total ftrace event.
319 * Added TrustZone (scm start/end) event.
320 * Added protos for GPU memory tracking and updated render stages proto.
321 * Added time_in_state probe for Android (CPU time broken down by frequency).
322
323 Trace Processor:
324 * Added ingestion of IRQ and SoftIRQ events.
325 * Added ingestion of workqueue events. KAddr symbolization still missing.
326 * Added ingestion of voltage regulators and board clock change events.
327 * Added ingestion of new ION ion_buffer_create/destroy events.
328 * Added ingestion of TrustZone (scm start/end) events.
329 * Added SurfaceFlinger derived events (tracking of missed frames).
330 * Changed parsing of scheduler task state on 4.14 kernels.
331 * Changed importing of Java heap graphs: allow partial dumps.
332 * Improved performance of the SQL query engine.
333
334 UI:
335 * Added dedicated query page for custom SQL queries.
336 * Added navigation links for Binder slices.
337 * Removed overview summary mode when zoomed out.
338 * Fixed recording page when targeting Android P.
339 * Improved slice pan/zoom performance by quantizing.