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