blob: 08617165b098479b4001d3f7445c7c3e6db25834 [file] [log] [blame]
Primiano Tucci2ab19f62020-07-01 21:28:31 +01001Unreleased:
2 Tracing service and probes:
Primiano Tucci5eabf6f2021-09-07 14:49:48 +01003 * Removed DCHECK that would cause crashes when a debug build of the service
4 is used with a producer built with -DNDEBUG.
Daniele Di Proiettoa4c180e2021-09-15 15:42:34 +00005 * Changed the service-side field-level filtering configuration protobuf
6 field number, because the feature had a bug. This is effectively
7 equivalent to deprecating the feature and reintroducing it under a
8 different name.
Primiano Tucci5f303142021-06-02 10:28:50 +01009 Trace Processor:
Lalit Maganti09002982021-09-10 17:04:08 +010010 * Added reqiurement of separating queries by semi-colon (;) followed by
11 new-line when specifying a query file with -q to trace processor shell.
Zaina Al-Mashni5ed83f92021-09-09 09:08:38 +000012 * Added "ancestor_slice_by_stack" and "descendant_slice_by_stack" table
13 functions to walk up and down the slice stacks.
Primiano Tucci876be6d2021-08-02 20:58:06 +010014 UI:
15 *
16 SDK:
Primiano Tucci1a69d012021-09-07 14:52:27 +010017 * Changed DCHECK and DLOGs to be always disabled in SDK builds, regardless
18 of NDEBUG.
Primiano Tucci876be6d2021-08-02 20:58:06 +010019
20
Primiano Tuccie356c102021-09-07 11:47:47 +010021v19.0 - 2021-09-02:
22 Tracing service and probes:
23 * Added ftrace clock reporting to the trace.
24 Trace Processor:
25 * Added support for longs/doubles to RUN_METRIC.
26 * Added power profile data for sunfish, redfin, and bramble.
27 * Added experimental Python library for computing slice breakdowns.
28 * Fixed parsing of JSON escape sequences.
29 * Fixed JSON trace detection.
30 UI:
31 * Added local cacheing of traces. Traces are reloaded in case of refresh or
32 tab being discarded by the browser.
33 * Added icon to distinguish metric-derived tracks.
34 * Added release channel selector to feature flags page.
35 * Fixed crash with null slice names.
36 SDK:
37 * Added some missing NESTABLE_ASYNC legacy trace macros.
38 * Fixed reporting of producer uid in --query.
39 * Fixed version numbering scheme for minor versions. Previously versions
40 were numbered as like v19.0.42 where 42 represented the number of commits
41 since the last major version release. This was ambiguous in the presence
42 of branches. Now versions are numbered like v19.0-ab12cd34 where ab12cd34
43 is the shortened Git commit-ish.
44
45
Primiano Tucci876be6d2021-08-02 20:58:06 +010046v18.0 - 2021-08-02:
47 Tracing service and probes:
48 * Added cross-compiler toolchains for Linux-{arm,64} based on Debian Sid.
49 These will be used for generating monthly releases' prebuilts via LUCI.
50 Trace Processor:
51 * Added 'android_gpu' metric to report residency information for each GPU
52 frequency (via `trace_processor_shell --run-metrics android_gpu`).
Primiano Tuccie2422be2021-07-20 18:19:45 +010053 * Removed the RawQuery RPC interface.
Primiano Tucci50199ce2021-07-02 14:50:53 +010054 UI:
Primiano Tuccie2422be2021-07-20 18:19:45 +010055 * Added a highlighted section to thread slices to visualize CPU time
Zaina Al-Mashni3911f612021-07-13 18:09:34 +000056 (darker) verses wall time (lighter).
Primiano Tucci876be6d2021-08-02 20:58:06 +010057 * Added global counter tracks for perf counters (e.g. "CPU 0 cycles", "CPU 0
58 instructions") when the 'linux.perf' data source (traced_perf) is used.
59 * Added a (feature) 'Flags' page to enable/disable individual metrics.
60 * Fixed races that could cause occasional crashes when loading a trace
61 from a permalink.
Primiano Tucci50199ce2021-07-02 14:50:53 +010062 SDK:
Primiano Tuccie2422be2021-07-20 18:19:45 +010063 * Fix undefined reference on ~TracingMuxerFake when building the SDK.
Primiano Tucci50199ce2021-07-02 14:50:53 +010064
65
66v17.0 - 2021-07-02:
67 Tracing service and probes:
Ryan Savitski6444aad2021-07-02 16:30:57 +010068 * Fixed a bug in ftrace parsing of absolute timestamps
69 (RINGBUF_TYPE_TIME_STAMP), encountered on Linux kernels 5.9+.
Primiano Tucci50199ce2021-07-02 14:50:53 +010070 * Fixed a bug in --save-for-bugreport causing 0-length traces if the
71 selected trace declared one or more triggers in the config.
72 * Fixed a bug in tracebox causing the PERFETTO_PRODUCER_SOCK_NAME env
73 var to be ignored.
74 Trace Processor:
Primiano Tucci728230d2021-06-16 15:38:35 +010075 * Changed CORS headers of --httpd mode to allow only https://ui.perfetto.dev
76 and http://localhost:10000. This affects only CORS-aware browser clients.
Primiano Tucci50199ce2021-07-02 14:50:53 +010077 * Added GPU frequency metrics.
Primiano Tucci5f303142021-06-02 10:28:50 +010078 UI:
Primiano Tuccice51d522021-06-03 14:57:45 +010079 * Fixed ADB connection issues ("unable to reset device") on Windows and Mac.
Primiano Tucci50199ce2021-07-02 14:50:53 +010080 * Added caching of tracing in the cache storage so that the trace is
81 re-opened if a tab is killed (Chrome tab discarding or accidental CTRL+W).
Primiano Tucci5f303142021-06-02 10:28:50 +010082 SDK:
Sami Kyostilac687c2e2021-06-03 13:00:45 +010083 * Added support for writing track events using custom clock timestamps.
Primiano Tucci5f303142021-06-02 10:28:50 +010084
85
Primiano Tucci5ca51f92021-06-08 10:29:35 +010086v16.1 - 2021-06-08:
87 Tracing service and probes:
88 * Cherry-pick of r.android.com/1716718 which missed the v16 branch cut and
89 fixed MSVC 2019 builds.
90
91
Primiano Tucci5f303142021-06-02 10:28:50 +010092v16.0 - 2021-06-01:
93 Tracing service and probes:
Primiano Tucci235610f2021-05-24 20:22:43 +010094 * Added support for building most targets (including traced, SDK and
95 trace_processor_shell) from Windows using either clang-cl or MSVC 2019.
96 * Added tracebox, a monolithic binary to capture traces with one command
97 on Linux and older versions of Android (tested on Android Oreo).
Primiano Tucci5f303142021-06-02 10:28:50 +010098 * Added support for service-side field-level filtering of traces. The
99 consumer can pass a filter bytecode and ensure that non-allowed fields
100 are never emitted in output.
101 * Added reporting of service version and producer SDK version into the trace
102 and `perfetto --query`.
103 * Fixed compatibility with Android versions older than Pie (for sideloading)
104 which cause failures when trying to enable atrace categories.
Primiano Tucci96755912021-01-05 12:15:17 +0100105 Trace Processor:
Primiano Tucci5f303142021-06-02 10:28:50 +0100106 * Added new RPC interface based on a bidirectional binary pipe. This allows
107 to simplify integration with out-of-process users. The existing --httpd
108 interface now exposes a single /rpc endpoint. Older endpoints are still
109 available for legacy clients.
110 * Added support for counters and instant events in JSON traces.
111 * Fixed support of displayTimeUnit in JSON traces.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000112 UI:
Primiano Tucci41327402021-06-01 20:28:00 +0100113 * Added warning dialog when trying to use a trace_processor_shell --httpd
114 which is too old.
115 * Added warning dialog when trying to use a trace_processor_shell --httpd
116 RPC instance from more than one tab.
Primiano Tucci5f303142021-06-02 10:28:50 +0100117 * Added links to convert the trace to JSON or systrace directly from the UI.
118 * Changed track sorting logic. Tracks are now sorted in groups (e.g.,
119 scheduling tracks, summary tracks, frame timeline tracks).
120 * Fixed crashes happening flakily when pushing traces via window.open().
Primiano Tucci8220de22021-05-05 09:53:37 +0100121
122
123v15.0 - 2021-05-05:
124 Tracing service and probes:
125 * Added support for {host,target}=aarch64 standalone builds.
126 * Added --background cmdline switch to traced and traced_probes services.
127 * Changed trigger_perfetto to ignore unknown command line arguments to
128 preserve forward compatibility.
129 * Added -a / --app cmdline argument to tools/record_android_trace.
130 Trace Processor:
131 * Added sanitisation of keys in nested debug annotation dictionaries.
132 * Changed Android startup metric: count CPU time of JIT thread pool, report
133 timestamp of activities during startup.
134 * Changed android_surfaceflinger metric, added missed frame counters.
135 * Changed version of SQLite to 3.35.4.
136 * Fixed importing of JSON traces with decimal (sub-us) timestamp.
137 * Fixed prepending "debug." prefix to debug annotations with non-interned
138 names.
139 UI:
140 * Added support to visualize the lifetime of individual dmabuf allocations
141 as async slices (datasource: already existing ftrace dmabuf event).
142 * Fixed visualization of unfinished slices to extend to the end of the
143 viewport.
144 SDK:
Alexander Timin129bdcf2021-04-16 11:36:37 +0000145 * Added support for passing arbitrary number of debug annotations to
146 TRACE_EVENT and combining them with lambdas.
147 * Added support for writing typed TrackEvent arguments using TRACE_EVENT
148 inline without lambdas.
Primiano Tucci8220de22021-05-05 09:53:37 +0100149 * Changed ConvertTimestampToTraceTimeNs to be a member of
150 TraceTimestampTraits<T> struct instead of a standalone function.
151 * Changed TracedValue to use nested DebugAnnotation proto instead of
152 DebugAnnotation::NestedValue.
Primiano Tucci7454e1a2021-04-01 13:03:19 +0100153
154
155v14.0 - 2021-04-01:
156 Tracing service and probes:
157 * Added support for polling power rails on Android from the newer
158 IPowerStats AIDL interface (previously using only the HAL interface).
159 * Fixed native heap profiler crash when ABI of heapprofd and profiled
160 process mismatch.
161 * Changed encoding format of Anroid managed heap profiler to reduce heap
162 dump sizes by delta-encoding object IDs.
163 Trace Processor:
164 * Added activity create/resume, layout inflation and resource timings to
165 the Android startup metric.
166 * Added chrome metadata key/value pairs (e.g. chrome version) into the
167 `metadata` table with 'cr-' prefixed keys.
168 * Added dma-buf-based memory metrics reporting total/avg/min/max dmabuf
169 allocation per-dmabuf-heap and per-process.
170 * Removed |force_full_sort| flag from config. This has been replaced
171 by setting the sorting mode to force a full sort.
172 UI:
173 * Added tools/symbolize-ui-crash script to resolve crash reports via
174 TypeScript source maps.
175 * Fixed newlines when copying Android event log lines into the clipboard.
176 * Fixed crash when selecting "Did not finish" slices.
177 * Fixed OOM dialog to give actionable instructions when opening large traces
178 rather than suggesting to file a bug.
Sami Kyostilaedf7c862021-03-11 13:33:35 +0000179 SDK:
Primiano Tucci7454e1a2021-04-01 13:03:19 +0100180 * Added /meson.build for bundling /sdk/perfetto.{cc,h} in Meson builds.
181 * Added support for counter trace points with the TRACE_COUNTER macro.
182
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000183
184v13.0 - 2021-03-01:
185 Tracing service and probes:
186 * Added ability to sample callstacks using kernel tracepoints as timebase.
187 * Added abililty to record the perf timebase counter values into the trace,
188 both combined callstack+counter or counter-only.
189 * Added abillity to trigger traces based on VM pressure on Android. Requires
190 a dedicated tracing instance in $tracefs/instances/mm_events.
191 Trace Processor:
Lalit Maganti88eb6982021-03-01 14:28:51 +0000192 * Added sorting mode to trace processor config to specify how trace
193 processor should sort events. The |force_full_sort| flag has been
194 deprecated (with replacement) and will be removed in the next version.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000195 * Added ingestion of frame timeline events into the
196 {expected,actual}_frame_timeline_slice tables.
197 * Added support for Mali's trace_marker_write ftrace event.
198 * Added memory metric based on newer android_fastrpc kernel events.
Primiano Tucci96755912021-01-05 12:15:17 +0100199 UI:
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000200 * Added flow events support for instant events and async tracks.
201 * Added support for Android frame timeline events. They allow inspecting
202 end-to-end expected vs actual app-to-surfaceflinger frame times.
203 * Added ability to switch between Canary and Stable channels in the UI.
204 * Added ability to drag&drop to open trace files.
205 * Changed UI serving infrastructure, old ui versions can be now retrieved by
206 directly opening https://ui.perfetto.dev/v12.1.269/ .
207 * Removed thread state track for threads that have no activity.
Sami Kyostilae8c0ff52021-02-16 11:26:16 +0000208 SDK:
209 * Use process start time hashed with the process id as a unique process
210 identifier, allowing multiple independent users of the SDK in the same
211 process to interleave their events on shared tracks.
Sami Kyostila86b10c52021-02-16 16:50:42 +0000212 * Record process and thread names into the trace.
Sami Kyostila67cdc662021-02-26 16:42:14 +0000213 * Add ring buffer tracing support, i.e., periodic clearing of incremental
214 state.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000215 Misc:
216 * Convert python scripts to python3.
Primiano Tucci96755912021-01-05 12:15:17 +0100217
218
Primiano Tucci71a92392021-02-01 23:45:28 +0100219v12.1 - 2021-02-01:
220 Misc:
221 * Fixed CHANGELOG which was missed in the 12.0 branch cut, causing
222 mis-labeling of the version code in the v12.x branch as v11.0..N
223
224
Primiano Tucci9c294a42021-02-01 18:04:23 +0100225v12.0 - 2021-02-01:
226 Tracing service and probes:
227 * Added more helpful error messages if the client library is used without
228 having been initialized.
229 * Added //tools/record_android_trace script to facilitate recording traces
230 from Android devices, automating start + stop-via-ctrl+c + pull + open.
231 * Added auto-attachment of traces to Android bugreports if dumpstate is
232 invoked when a trace with bugreport_score > 0 is running.
233 SDK:
234 * Added ability to customize the timestamp of events via
235 ConvertTimestampToTraceTimeNs().
236 * Fixed support for category names that contain a space.
237 Trace Processor:
238 * Added ingestion and query support for Android end-to-end frame timing
239 events through the {actual, expected}_frame_timeline_slice tables.
240 * Added time-to-reportFullyDrawn (Android's API) to startup metrics.
241 * Fixed excessive memory usage when decoding traces containing callstacks
242 (https://github.com/google/perfetto/issues/83).
243 UI:
244 * Added ability to inspect the full trace config string from the
245 'Info and stats' page.
246 * Fixed 'TABLE/VIEW XXX already exists' in the Metrics page when running the
247 same metric twice.
248 * Fixed sorting of tracks using numeric sorting instead of lexicographic:
249 Thread {1, 2, 10, 11, 20} rather than Thread {1, 10, 11, 2, 20}.
250 * Fixed CSP-related bug that was preventing the UI to work on Firefox.
251 * Changed max zoom resolution to allow to zoom to sub-us events.
252
253
Primiano Tucci96755912021-01-05 12:15:17 +0100254v11.0 - 2021-01-01:
255 Tracing service and probes:
Sami Kyostilaae504d42020-12-02 12:00:25 +0000256 * Added trace packet interceptor API for rerouting trace data into
257 non-Perfetto systems.
Sami Kyostila6c151262020-12-15 18:48:51 +0000258 * Added support for printing track events to the console.
Sami Kyostila2778ac82020-12-21 16:12:27 +0000259 * Added a way to observe track event tracing sessions starting and
260 stopping.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000261 Trace Processor:
Primiano Tucci96755912021-01-05 12:15:17 +0100262 * Added "ancestor_slice" and "experimental_ancestor_stack_profile_callsite"
263 table functions to look up ancestors of CPU stack samples in profiler
264 tables.
265 * Added power metric reporting suspend/resume time periods.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000266 UI:
Primiano Tucci96755912021-01-05 12:15:17 +0100267 * Fixed CPU time calculation in example queries.
268 * Added tracks to debug Android SystemUI jank.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000269
Primiano Tucci5d2be3a2020-12-01 20:42:45 +0100270
271v10.0 - 2020-12-01:
272 Tracing service and probes:
273 * Fixed crash of tracing service if a client is unresponsive on the IPC
274 channel. Clients are disconnected if they don't respond to IPCs for 10s.
275 * Added cmdline arguments for integration within ChromeOS system image
276 (--{producer,consumer}-socket-{group,mode} for chmod-ing sockets).
277 * Changed path lookup logic for traced socket. /run/perfetto/ is used if the
278 directory exists, falling back on /tmp/ otherwise.
279 * Added support for kernel frame symbolization to the traced_perf callstack
280 sampler.
281 * Added support for resolving ftrace event arguments that require
282 symbolization against printk_format.
283 Trace Processor:
284 * Added .read command to inject a SQL query file, similar to the -q cmdline.
285 * Added trace-based metrics to root cause jank in Android System UI.
286 * Added symbolization support for ELF files on Windows for heap and
287 callstack profilers.
288 * Added support for symbolizing names of workqueue ftrace events.
289 * Improved Android startup metric with activity restart time.
290 UI:
291 * Added support for navigating flows with Ctrl+[ / Ctr+].
292 * Improved query result panel, moved to the bottom group allowing
293 simultaneous query result and timeline views.
294 * Fixed data corruption when recording traces via the WebUSB-based Record
295 page in the UI.
296
297
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000298v9.0 - 2020-11-01:
299 Tracing service and probes:
Sami Kyostilaf99230f2020-10-15 10:38:32 +0000300 * Added support for recording traces from a system service through the
301 client API.
302 * The client library now reconnects producers automatically if the
303 connection to the tracing service is lost. Also fixed crashes in ongoing
304 tracing sessions when a disconnect occurs.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000305 * Added support for dpu and g2d ftrace events.
306 * Enabled commit batching and producer side patching of chunks.
307 * Add support for symbolizing kernel symbols for ftrace events.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100308 Trace Processor:
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000309 * Fixed type affinity of string columns.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100310 UI:
Lalit Maganti09549602020-10-01 16:47:00 +0100311 * Added initial support for running metrics from the UI.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000312 * Added support for displaying all flows when a slice or area is selected.
313 * Highlight nodes that match the 'focus' string in the flamegraph.
314 * Added search within slice args.
315 * Fixed details panel height and moved query panel into details panel.
316 * Enabled re-sharing of postMessage traces by echoing back the original URL.
317 * Improved record page error messages.
Lalit Maganti09549602020-10-01 16:47:00 +0100318
319
320v8.0 - 2020-10-01:
321 Tracing service and probes:
322 * Added API for querying registered data sources and their capabilities.
323 * Added support for profiling heap allocations on Linux via LD_PRELOAD.
324 * Fixed possible race when initializing the consumer library.
325 * Fixed subtle bugs on systems with 16KB system pages.
326 Trace Processor:
327 * Added a table which lists available metrics.
328 * Added Python bindings on PyPi in the 'perfetto' package.
329 * Added support for running trace_processor_shell on Android.
330 * Added per-process metrics for GPU memory usage.
331 * Added support for exporting flow events to JSON.
332 * Added dynamic tables for navigating between slices of flows.
333 UI:
334 * Changed time marking: horizontal selection doesn't gray out anymore,
335 pressing 'm' marks the range.
336 * Added initial support for displaying flow event arrows.
337 * Improved ordering of all thread tracks under process grouping.
338 * Fixed UI crashes due to metric errors
339 * Fixed selection of thread state slices.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100340
341
Primiano Tucci816506e2020-09-01 18:13:12 +0200342v7.0 - 2020-09-01:
343 Tracing service and probes:
344 * Added auto-reconnection to the SDK. Tracing::Initialize() now retries in
345 the background, instead of failing, if the tracing service is unrechable.
346 * Added support for recording cpuhp (CPU hotplug) ftrace events.
347 * Fixed heap profiling unwinding on multi-ABI systems.
348 * Fixed reporting of live objects in the native heap profiler when using
349 --dump-at-max.
350 * Fixed crash when writing trace events with field nesting level > 10.
351 Trace Processor:
352 * Added Python bindings, see
353 https://perfetto.dev/docs/analysis/trace-processor#python-api .
354 * Added ingestion for Chrome instant events and Chrome flow events.
355 * Added ingestion for Android GPU memory events and sched_blocked_reason.
356 * Added WebView power metric.
357 * Added support for WSL1 where Async I/O is not available.
358 * Improved detection of Android suspend/resume events.
359 UI:
360 * Added GPU memory recording controls and ingestion code. Requires a recent
361 Android 12+ kernel.
362 * Added details panel for flow events, showed when the user selects a slice
363 involved in a flow (arrows in the UI are still being worked on).
364 * Added instant events rendering.
365 * Added Google Analytics.
366 * Fixed I/O thread-states in 4.14 kernels to deal with the removal of
367 wake-kill using sched_blocked_reason.
368 * Fixed "Perfetto UI started debugging this browser" showing when opening
369 the UI and the Chrome extension is installed.
370 Misc:
371 * Update language to comply with Android's inclusive language guidance.
372
373
Primiano Tucci6d7badc2020-07-31 19:03:27 +0200374v6.0 - 2020-08-01:
375 Tracing service and probes:
376 * Added ftrace thermal events.
377 * Added support for custom allocators to the heap profiler. Allows
378 developers to report memory allocations that are not done through malloc.
379 * Added detailed timestamping of key tracing session events.
380 * Added support for building tracing services on CrOS (system-wide tracing).
381 * Fixed filtering out of stale ftrace data that predates the beginning of
382 the tracing session.
383 Trace Processor:
384 * Improved profile symbolizer. PERFETTO_SYMBOLIZER_MODE=index discovers
385 symbol files by build id rather than name.
386 * Added screen-state Android metrics.
387 UI:
388 * Added 'Info and stats' page to debug data losses and trace stats.
389 * Added full cmdline to process detail panel.
390 * Improved performance of async tracks using quantized queries.
391 * Improved performance of counter and slice tracks for long traces by
392 pre-caching quantized track data.
393 * Improved actionablility of crash dialog when the Wasm module OOMs.
394
395
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100396v5.0 - 2020-07-01:
397 Tracing service and probes:
398 * Added gpu_mem_total ftrace event.
399 * Added TrustZone (scm start/end) event.
400 * Added protos for GPU memory tracking and updated render stages proto.
401 * Added time_in_state probe for Android (CPU time broken down by frequency).
402
403 Trace Processor:
404 * Added ingestion of IRQ and SoftIRQ events.
405 * Added ingestion of workqueue events. KAddr symbolization still missing.
406 * Added ingestion of voltage regulators and board clock change events.
407 * Added ingestion of new ION ion_buffer_create/destroy events.
408 * Added ingestion of TrustZone (scm start/end) events.
409 * Added SurfaceFlinger derived events (tracking of missed frames).
410 * Changed parsing of scheduler task state on 4.14 kernels.
411 * Changed importing of Java heap graphs: allow partial dumps.
412 * Improved performance of the SQL query engine.
413
414 UI:
415 * Added dedicated query page for custom SQL queries.
416 * Added navigation links for Binder slices.
417 * Removed overview summary mode when zoomed out.
418 * Fixed recording page when targeting Android P.
419 * Improved slice pan/zoom performance by quantizing.