blob: bdf8b0fe77846cdea977c058bfb585aabb3def2e [file] [log] [blame]
Primiano Tucci2ab19f62020-07-01 21:28:31 +01001Unreleased:
2 Tracing service and probes:
Lalit Maganti8d6d7c12022-02-24 20:35:23 +00003 * Removed merged trace and config protos from Bazel. Embedder should
4 instead depend on the non-merged proto targets.
Primiano Tuccife6c2e32022-02-08 20:59:11 +00005 Trace Processor:
6 *
7 UI:
Lalit Maganti6b515622022-02-15 14:42:18 +00008 * Added flow arrows between binder transaction pairs (request/reply
9 and async send/async recv).
Primiano Tuccife6c2e32022-02-08 20:59:11 +000010 SDK:
Alexander Timin94204c62022-03-14 16:57:32 +000011 * Added support for writing typed proto messages inside DebugAnnotations.
Mohit Saini5a7403c2022-03-14 18:24:43 +000012 * Added support for delta encoding of timestamps for TrackEvents.
13 To disable it, refer to `disable_incremental_timestamps` flag in
14 `track_event_config.proto`.
Primiano Tuccife6c2e32022-02-08 20:59:11 +000015
16
Primiano Tuccid5184022022-02-10 16:41:56 +000017v24.2 - 2022-02-10:
18 SDK:
19 * Revert of incremental timestamps, introduced in v24.0.
20 Some clients were depending on non-incremental timestamps.
21 Future releases will re-enable this but offer an opt-out.
22
23
Primiano Tuccid59e9de2022-02-09 10:42:14 +000024v24.1 - 2022-02-09:
25 Tracing service and probes:
26 * Fixed build failures on Windows.
27 Trace Processor:
28 * Fixed build failures on Windows.
Primiano Tuccid59e9de2022-02-09 10:42:14 +000029
30
Primiano Tuccife6c2e32022-02-08 20:59:11 +000031v24.0 - 2022-02-08:
32 Tracing service and probes:
33 * Added "cpufreq_period_ms" in data source "linux.sys_stats" to poll
34 /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq periodically.
35 * Added support for Trusty TEE workqueue events.
36 * Added support for more PMU events in traced_perf.
Primiano Tucci24df3232022-01-26 19:15:17 +000037 * Changed output format of perfetto --query. Made the output more compact
38 and added a summary of ongoing tracing sessions for the caller UID.
Primiano Tuccife6c2e32022-02-08 20:59:11 +000039 * Changed timeout for traced stall detection from 2s to 4s.
40 * Changed internal buffer management to split trace filtering in smaller
41 tasks and avoid too large memory allocation when filtering.
42 * Fixed a bug that could cause producers to see Flush() requests after an
43 OnStop() and mis-behave if the tracing session is extremely short.
Primiano Tuccie9e81c02021-12-03 18:02:58 +000044 Trace Processor:
Primiano Tuccife6c2e32022-02-08 20:59:11 +000045 * Added support for passing multiple SQL statements to ExecuteQuery(). All
46 queries will be executed fully, with the returned iterator yielding rows
47 for the final statement.
48 * Added support for multi-line SQL comments; previously only single line
Lalit Maganti95465982022-01-27 22:41:15 +000049 comments were supported.
Primiano Tucci4f997ef2022-01-11 20:22:47 +000050 UI:
Primiano Tuccife6c2e32022-02-08 20:59:11 +000051 * Added support for parsing instant events from legacy systrace formats.
52 * Added ingestion and visualization for inet_sock_set_state and
53 tcp_retransmit_skb events, showing TCP connections on dedicated tracks.
Primiano Tucci2b2236f2022-01-28 10:50:43 +000054 * Changed HTTP+RPC to use the /websocket endpoint available in newer
55 versions of trace_processor --httpd.
Primiano Tuccife6c2e32022-02-08 20:59:11 +000056 * Changed text selection/copy: now allowed by default for DOM elements.
57 * Changed search to also lookup slices by ID when the term is a number.
58 * Changed postMessage() API, suppressed confirmation dialog when the opener
59 is in the same origin, for cases when the UI is self-hosted.
Primiano Tucci4f997ef2022-01-11 20:22:47 +000060 SDK:
Primiano Tuccid5184022022-02-10 16:41:56 +000061 * Changed timestamps emitted by the SDK to be incremental by default, using
62 ClockSnapshot + TracePacketDefaults.
Primiano Tucci4f997ef2022-01-11 20:22:47 +000063
64
65v23.0 - 2022-01-11:
66 Tracing service and probes:
67 * Added workaround for a kernel ftrace bug causing some "comm" fields to be
68 not null-terminated. https://github.com/torvalds/linux/commit/f0a5157803 .
69 * Added ability to talk to the newer AIDL-based health hal in traced_probes.
70 It still falls back on the older HIDL interface for older devices.
71 Trace Processor:
Primiano Tucci1d518b42022-01-11 19:09:45 +000072 * Changed the argument for the trace path in constructor of TraceProcessor
73 in the Python API from |file_path| to |trace|.
Lalit Maganticb8e0ff2022-01-11 15:36:37 +000074 |file_path| is deprecated and may be removed in the future.
Primiano Tucci1d518b42022-01-11 19:09:45 +000075 * Changed the Python API constructor. Now it takes a TraceProcessorConfig
Lalit Maganticb8e0ff2022-01-11 15:36:37 +000076 instead of passing parameters directly. This may break existing code
77 but migration should be trivial (all current options are still
78 supported).
Primiano Tucci1d518b42022-01-11 19:09:45 +000079 * Fixed a HTTP keepalive bug in trace_processor --httpd. The bug, introduced
80 in v22.0, caused each RPC request to close the connection, effectively
81 defeating the 'Connection: Keep-Alive', after each query made by the UI.
Primiano Tucci4f997ef2022-01-11 20:22:47 +000082 * Added parsing of netif_receive_skb events from proto traces.
83 * Added android_netperf metric based on netif events.
84 * Fixed a bug that would cause fetch errors when loading traces > 32 MB when
85 using trace_processor --httpd.
86 * Added a workaround to tokenize properly /proc/pid/cmdline for chrome
87 processes on Linux/CrOS. Chrome rewrites its cmdline replacing \0 -> ' '.
Primiano Tuccie9e81c02021-12-03 18:02:58 +000088 UI:
89 *
90 SDK:
91 *
92
93
Primiano Tucci26e2acb2021-12-07 20:27:53 +000094v22.1 - 2021-12-07:
95 Tracing service and probes:
96 * Added workaround for a Linux kernel bug causing some ftrace strings to
97 be non-null-terminated (https://github.com/torvalds/linux/commit/f0a5157).
98 Trace Processor:
99 * Fixed build failures on Windows.
100
101
Primiano Tuccie9e81c02021-12-03 18:02:58 +0000102v22.0 - 2021-12-03:
103 Tracing service and probes:
Lalit Maganti7030e782021-11-08 13:12:42 +0000104 * Added Android SDK version to the SystemInfo trace packet.
Primiano Tucci2277f062021-11-08 22:24:05 +0000105 * Changed compiler flags. Assume recent x64 CPUs (-msse4.2 -mavx -mpopcnt).
106 This behavior affects only standalone builds and can be changed by setting
107 enable_perfetto_x64_cpu_opt=false in the GN args.
Daniele Di Proietto4d9665b2021-11-24 18:25:46 +0000108 * The java heap profiler now rescans all the processes every time for
109 continous_dump_config. The scan_pids_only_on_start can be used to restore
110 the old behavior.
Primiano Tuccie9e81c02021-12-03 18:02:58 +0000111 * Added support for building on ARM Macs.
112 * Added support for the rss_stat_throttled event on Android via
113 FtraceConfig.throttle_rss_stat. In newer Android kernels the base rss_stat
114 event is now unthrottled. rss_stat used to be throttled by a downstream
115 kernel change, unnecessary after https://lkml.org/lkml/2021/10/25/1411 .
116 atrace.rc configures throttling from userspace at boot.
117 * Fixed a bug that caused IPCs to stall traced and hit the watchdog if in
118 the middle of a suspend/resume. Switched from SND_TIMEO to poll(POLLOUT).
119 * Added "linux.sysfs_power" data source to poll /sys/class/power_supply/
120 and report periodically battery charge and drain rate if supported.
Lalit Maganti33928bc2022-01-27 17:30:08 +0000121 * Add snapshotting for non-BOOTTIME ftrace clocks. This fixes handling of
122 ftrace events from old Linux kernel versions (i.e. 3.x) and adds
123 proper support for using the "global" clock rather than "boot".
Primiano Tucci6a46cc72021-10-04 18:57:12 +0100124 Trace Processor:
Primiano Tuccie9e81c02021-12-03 18:02:58 +0000125 * Speeded up proto trace ingestion by 2x (~20 MB/s -> ~40 MB/s).
Lalit Maganti1cf65eb2021-11-10 16:13:48 +0000126 * Changed LIKE comparisions to be case-senstive. This may break existing
127 queries but was a necessary from a performance perspective.
Primiano Tuccie9e81c02021-12-03 18:02:58 +0000128 Going forward, GLOB must be used, instead of LIKE, for checked in metrics
129 to avoid unnecessary slowdowns.
Primiano Tucci2277f062021-11-08 22:24:05 +0000130 * Changed compiler flags, assume recent x64 CPUs (see above).
Hector Dearmanee80bcb2021-11-30 13:51:30 +0000131 * Changed how displayTimeUnit is handled in JSON traces to match catapult.
Primiano Tuccie9e81c02021-12-03 18:02:58 +0000132 * Added websocket endpoint to RPC interface to reduce query latency.
133 * Added support for hot-reloading metrics (see //docs/analysis/metrics.md).
Lalit Maganti33928bc2022-01-27 17:30:08 +0000134 * Added ingestion support for non-BOOTTIME ftrace clocks.
Primiano Tucci6a46cc72021-10-04 18:57:12 +0100135 UI:
Primiano Tuccie9e81c02021-12-03 18:02:58 +0000136 * Added ability to save/restore record config. Remember last used config.
137 * Fixed bug causing the recording page to hold onto the USB interface making
138 adb unusable after a recording session.
Primiano Tucci6a46cc72021-10-04 18:57:12 +0100139 SDK:
Primiano Tucci360f0232021-11-04 13:41:08 +0000140 * Added UpdateDataSource() descriptor IPC endpoint to allow updates of the
141 data source capabilities (e.g., category list for track event).
Primiano Tucci6a46cc72021-10-04 18:57:12 +0100142
143
Primiano Tucciea727872021-11-02 21:42:05 +0000144v21.0 - 2021-11-01:
145 Tracing service and probes:
146 * Added reporting of last 8 PERFETTO_LOG() entries and crash keys to
147 crash tombstones on Android.
148 * Changed kallsym parser to save 100ms for starting a tracing session with
149 enable_ksyms=true.
150 * Removed advertisement of the built-in data sources "android.heapprofd",
151 "android.java_hprof", "linux.perf" on Linux and other platforms. Built-in
152 data sources are only used to lazy-start daemons on Android OS.
153 * Changed ACL files on Android atrace.rc to support to up to 24 ftrace cpus.
154 No change on Linux which remains unlimited.
155 Trace Processor:
156 * Changed protobuf decoders to use less stack and fall back on heap sooner
157 (before: 16KB of stack per decoder, after: 1.6KB). It caused problems with
158 some embedders which use smaller per-thread stacks.
159 * Added support for SPAN OUTER JOIN on unpartitioned tables.
160 * Improved performance of as_pandas_dataframe() in the Python API by 16x.
161 UI:
162 * Added visualization of direct_reclaim ftrace events.
163 SDK:
164 * Added perfetto::{Flow,TerminatingFlow} to the track-event library.
165
166
Primiano Tuccia94219a2021-10-05 10:38:24 +0100167v20.1 - 2021-10-05:
168 Tracing service and probes:
169 * Fixed standalone Windows build. Updated the llvm-win toolchain.
170
171
Primiano Tucci6a46cc72021-10-04 18:57:12 +0100172v20.0 - 2021-10-03:
173 Tracing service and probes:
Primiano Tucci5eabf6f2021-09-07 14:49:48 +0100174 * Removed DCHECK that would cause crashes when a debug build of the service
175 is used with a producer built with -DNDEBUG.
Daniele Di Proiettoa4c180e2021-09-15 15:42:34 +0000176 * Changed the service-side field-level filtering configuration protobuf
177 field number, because the feature had a bug. This is effectively
178 equivalent to deprecating the feature and reintroducing it under a
179 different name.
Primiano Tucci6a46cc72021-10-04 18:57:12 +0100180 * Added support for boot tracing on Android. Early kernel tracing (prior to
181 the point when /data is mounted) is not yet supported. For instructions
182 see /docs/case-studies/android-boot-tracing.md .
Primiano Tucci5f303142021-06-02 10:28:50 +0100183 Trace Processor:
Lalit Maganti09002982021-09-10 17:04:08 +0100184 * Added reqiurement of separating queries by semi-colon (;) followed by
185 new-line when specifying a query file with -q to trace processor shell.
Zaina Al-Mashni5ed83f92021-09-09 09:08:38 +0000186 * Added "ancestor_slice_by_stack" and "descendant_slice_by_stack" table
187 functions to walk up and down the slice stacks.
Lalit Maganti09e840c2021-09-22 15:23:17 +0100188 * Overhauled windowed sorting to be based on packet ordering and
Primiano Tucci6a46cc72021-10-04 18:57:12 +0100189 lifecycle events inside the trace instead of time-based ordering.
190 * Removed |SortingMode::kForceFlushPeriodWindowedSort| due to changes to the
191 sorting algorithm, which is now based on Flush events rather than time.
192 Embedders should switch to |SortingMode::kDefaultHeuristics|. Other
193 SortingMode enum values are no-ops and will be removed in future versions.
Primiano Tucci876be6d2021-08-02 20:58:06 +0100194 UI:
Primiano Tucci6a46cc72021-10-04 18:57:12 +0100195 * Added initial flamegraph support for traced_perf callstack samples.
196 * Added initial Pivot table for aggregation of userspace slices. The feature
197 is disabled by default for and requires manual enabling via
198 https://ui.perfetto.dev/#!/flags .
Primiano Tucci876be6d2021-08-02 20:58:06 +0100199 SDK:
Primiano Tucci1a69d012021-09-07 14:52:27 +0100200 * Changed DCHECK and DLOGs to be always disabled in SDK builds, regardless
201 of NDEBUG.
Primiano Tucci876be6d2021-08-02 20:58:06 +0100202
203
Primiano Tuccie356c102021-09-07 11:47:47 +0100204v19.0 - 2021-09-02:
205 Tracing service and probes:
206 * Added ftrace clock reporting to the trace.
207 Trace Processor:
208 * Added support for longs/doubles to RUN_METRIC.
209 * Added power profile data for sunfish, redfin, and bramble.
210 * Added experimental Python library for computing slice breakdowns.
211 * Fixed parsing of JSON escape sequences.
212 * Fixed JSON trace detection.
213 UI:
214 * Added local cacheing of traces. Traces are reloaded in case of refresh or
215 tab being discarded by the browser.
216 * Added icon to distinguish metric-derived tracks.
217 * Added release channel selector to feature flags page.
218 * Fixed crash with null slice names.
219 SDK:
220 * Added some missing NESTABLE_ASYNC legacy trace macros.
221 * Fixed reporting of producer uid in --query.
222 * Fixed version numbering scheme for minor versions. Previously versions
223 were numbered as like v19.0.42 where 42 represented the number of commits
224 since the last major version release. This was ambiguous in the presence
225 of branches. Now versions are numbered like v19.0-ab12cd34 where ab12cd34
226 is the shortened Git commit-ish.
227
228
Primiano Tucci876be6d2021-08-02 20:58:06 +0100229v18.0 - 2021-08-02:
230 Tracing service and probes:
231 * Added cross-compiler toolchains for Linux-{arm,64} based on Debian Sid.
232 These will be used for generating monthly releases' prebuilts via LUCI.
233 Trace Processor:
234 * Added 'android_gpu' metric to report residency information for each GPU
235 frequency (via `trace_processor_shell --run-metrics android_gpu`).
Primiano Tuccie2422be2021-07-20 18:19:45 +0100236 * Removed the RawQuery RPC interface.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100237 UI:
Primiano Tuccie2422be2021-07-20 18:19:45 +0100238 * Added a highlighted section to thread slices to visualize CPU time
Zaina Al-Mashni3911f612021-07-13 18:09:34 +0000239 (darker) verses wall time (lighter).
Primiano Tucci876be6d2021-08-02 20:58:06 +0100240 * Added global counter tracks for perf counters (e.g. "CPU 0 cycles", "CPU 0
241 instructions") when the 'linux.perf' data source (traced_perf) is used.
242 * Added a (feature) 'Flags' page to enable/disable individual metrics.
243 * Fixed races that could cause occasional crashes when loading a trace
244 from a permalink.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100245 SDK:
Primiano Tuccie2422be2021-07-20 18:19:45 +0100246 * Fix undefined reference on ~TracingMuxerFake when building the SDK.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100247
248
249v17.0 - 2021-07-02:
250 Tracing service and probes:
Ryan Savitski6444aad2021-07-02 16:30:57 +0100251 * Fixed a bug in ftrace parsing of absolute timestamps
252 (RINGBUF_TYPE_TIME_STAMP), encountered on Linux kernels 5.9+.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100253 * Fixed a bug in --save-for-bugreport causing 0-length traces if the
254 selected trace declared one or more triggers in the config.
255 * Fixed a bug in tracebox causing the PERFETTO_PRODUCER_SOCK_NAME env
256 var to be ignored.
257 Trace Processor:
Primiano Tucci728230d2021-06-16 15:38:35 +0100258 * Changed CORS headers of --httpd mode to allow only https://ui.perfetto.dev
259 and http://localhost:10000. This affects only CORS-aware browser clients.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100260 * Added GPU frequency metrics.
Primiano Tucci5f303142021-06-02 10:28:50 +0100261 UI:
Primiano Tuccice51d522021-06-03 14:57:45 +0100262 * Fixed ADB connection issues ("unable to reset device") on Windows and Mac.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100263 * Added caching of tracing in the cache storage so that the trace is
264 re-opened if a tab is killed (Chrome tab discarding or accidental CTRL+W).
Primiano Tucci5f303142021-06-02 10:28:50 +0100265 SDK:
Sami Kyostilac687c2e2021-06-03 13:00:45 +0100266 * Added support for writing track events using custom clock timestamps.
Primiano Tucci5f303142021-06-02 10:28:50 +0100267
268
Primiano Tucci5ca51f92021-06-08 10:29:35 +0100269v16.1 - 2021-06-08:
270 Tracing service and probes:
271 * Cherry-pick of r.android.com/1716718 which missed the v16 branch cut and
272 fixed MSVC 2019 builds.
273
274
Primiano Tucci5f303142021-06-02 10:28:50 +0100275v16.0 - 2021-06-01:
276 Tracing service and probes:
Primiano Tucci235610f2021-05-24 20:22:43 +0100277 * Added support for building most targets (including traced, SDK and
278 trace_processor_shell) from Windows using either clang-cl or MSVC 2019.
279 * Added tracebox, a monolithic binary to capture traces with one command
280 on Linux and older versions of Android (tested on Android Oreo).
Primiano Tucci5f303142021-06-02 10:28:50 +0100281 * Added support for service-side field-level filtering of traces. The
282 consumer can pass a filter bytecode and ensure that non-allowed fields
283 are never emitted in output.
284 * Added reporting of service version and producer SDK version into the trace
285 and `perfetto --query`.
286 * Fixed compatibility with Android versions older than Pie (for sideloading)
287 which cause failures when trying to enable atrace categories.
Primiano Tucci96755912021-01-05 12:15:17 +0100288 Trace Processor:
Primiano Tucci5f303142021-06-02 10:28:50 +0100289 * Added new RPC interface based on a bidirectional binary pipe. This allows
290 to simplify integration with out-of-process users. The existing --httpd
291 interface now exposes a single /rpc endpoint. Older endpoints are still
292 available for legacy clients.
293 * Added support for counters and instant events in JSON traces.
294 * Fixed support of displayTimeUnit in JSON traces.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000295 UI:
Primiano Tucci41327402021-06-01 20:28:00 +0100296 * Added warning dialog when trying to use a trace_processor_shell --httpd
297 which is too old.
298 * Added warning dialog when trying to use a trace_processor_shell --httpd
299 RPC instance from more than one tab.
Primiano Tucci5f303142021-06-02 10:28:50 +0100300 * Added links to convert the trace to JSON or systrace directly from the UI.
301 * Changed track sorting logic. Tracks are now sorted in groups (e.g.,
302 scheduling tracks, summary tracks, frame timeline tracks).
303 * Fixed crashes happening flakily when pushing traces via window.open().
Primiano Tucci8220de22021-05-05 09:53:37 +0100304
305
306v15.0 - 2021-05-05:
307 Tracing service and probes:
308 * Added support for {host,target}=aarch64 standalone builds.
309 * Added --background cmdline switch to traced and traced_probes services.
310 * Changed trigger_perfetto to ignore unknown command line arguments to
311 preserve forward compatibility.
312 * Added -a / --app cmdline argument to tools/record_android_trace.
313 Trace Processor:
314 * Added sanitisation of keys in nested debug annotation dictionaries.
315 * Changed Android startup metric: count CPU time of JIT thread pool, report
316 timestamp of activities during startup.
317 * Changed android_surfaceflinger metric, added missed frame counters.
318 * Changed version of SQLite to 3.35.4.
319 * Fixed importing of JSON traces with decimal (sub-us) timestamp.
320 * Fixed prepending "debug." prefix to debug annotations with non-interned
321 names.
322 UI:
323 * Added support to visualize the lifetime of individual dmabuf allocations
324 as async slices (datasource: already existing ftrace dmabuf event).
325 * Fixed visualization of unfinished slices to extend to the end of the
326 viewport.
327 SDK:
Alexander Timin129bdcf2021-04-16 11:36:37 +0000328 * Added support for passing arbitrary number of debug annotations to
329 TRACE_EVENT and combining them with lambdas.
330 * Added support for writing typed TrackEvent arguments using TRACE_EVENT
331 inline without lambdas.
Primiano Tucci8220de22021-05-05 09:53:37 +0100332 * Changed ConvertTimestampToTraceTimeNs to be a member of
333 TraceTimestampTraits<T> struct instead of a standalone function.
334 * Changed TracedValue to use nested DebugAnnotation proto instead of
335 DebugAnnotation::NestedValue.
Primiano Tucci7454e1a2021-04-01 13:03:19 +0100336
337
338v14.0 - 2021-04-01:
339 Tracing service and probes:
340 * Added support for polling power rails on Android from the newer
341 IPowerStats AIDL interface (previously using only the HAL interface).
342 * Fixed native heap profiler crash when ABI of heapprofd and profiled
343 process mismatch.
344 * Changed encoding format of Anroid managed heap profiler to reduce heap
345 dump sizes by delta-encoding object IDs.
346 Trace Processor:
347 * Added activity create/resume, layout inflation and resource timings to
348 the Android startup metric.
349 * Added chrome metadata key/value pairs (e.g. chrome version) into the
350 `metadata` table with 'cr-' prefixed keys.
351 * Added dma-buf-based memory metrics reporting total/avg/min/max dmabuf
352 allocation per-dmabuf-heap and per-process.
353 * Removed |force_full_sort| flag from config. This has been replaced
354 by setting the sorting mode to force a full sort.
355 UI:
356 * Added tools/symbolize-ui-crash script to resolve crash reports via
357 TypeScript source maps.
358 * Fixed newlines when copying Android event log lines into the clipboard.
359 * Fixed crash when selecting "Did not finish" slices.
360 * Fixed OOM dialog to give actionable instructions when opening large traces
361 rather than suggesting to file a bug.
Sami Kyostilaedf7c862021-03-11 13:33:35 +0000362 SDK:
Primiano Tucci7454e1a2021-04-01 13:03:19 +0100363 * Added /meson.build for bundling /sdk/perfetto.{cc,h} in Meson builds.
364 * Added support for counter trace points with the TRACE_COUNTER macro.
365
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000366
367v13.0 - 2021-03-01:
368 Tracing service and probes:
369 * Added ability to sample callstacks using kernel tracepoints as timebase.
370 * Added abililty to record the perf timebase counter values into the trace,
371 both combined callstack+counter or counter-only.
372 * Added abillity to trigger traces based on VM pressure on Android. Requires
373 a dedicated tracing instance in $tracefs/instances/mm_events.
374 Trace Processor:
Lalit Maganti88eb6982021-03-01 14:28:51 +0000375 * Added sorting mode to trace processor config to specify how trace
376 processor should sort events. The |force_full_sort| flag has been
377 deprecated (with replacement) and will be removed in the next version.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000378 * Added ingestion of frame timeline events into the
379 {expected,actual}_frame_timeline_slice tables.
380 * Added support for Mali's trace_marker_write ftrace event.
381 * Added memory metric based on newer android_fastrpc kernel events.
Primiano Tucci96755912021-01-05 12:15:17 +0100382 UI:
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000383 * Added flow events support for instant events and async tracks.
384 * Added support for Android frame timeline events. They allow inspecting
385 end-to-end expected vs actual app-to-surfaceflinger frame times.
386 * Added ability to switch between Canary and Stable channels in the UI.
387 * Added ability to drag&drop to open trace files.
388 * Changed UI serving infrastructure, old ui versions can be now retrieved by
389 directly opening https://ui.perfetto.dev/v12.1.269/ .
390 * Removed thread state track for threads that have no activity.
Sami Kyostilae8c0ff52021-02-16 11:26:16 +0000391 SDK:
392 * Use process start time hashed with the process id as a unique process
393 identifier, allowing multiple independent users of the SDK in the same
394 process to interleave their events on shared tracks.
Sami Kyostila86b10c52021-02-16 16:50:42 +0000395 * Record process and thread names into the trace.
Sami Kyostila67cdc662021-02-26 16:42:14 +0000396 * Add ring buffer tracing support, i.e., periodic clearing of incremental
397 state.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000398 Misc:
399 * Convert python scripts to python3.
Primiano Tucci96755912021-01-05 12:15:17 +0100400
401
Primiano Tucci71a92392021-02-01 23:45:28 +0100402v12.1 - 2021-02-01:
403 Misc:
404 * Fixed CHANGELOG which was missed in the 12.0 branch cut, causing
405 mis-labeling of the version code in the v12.x branch as v11.0..N
406
407
Primiano Tucci9c294a42021-02-01 18:04:23 +0100408v12.0 - 2021-02-01:
409 Tracing service and probes:
410 * Added more helpful error messages if the client library is used without
411 having been initialized.
412 * Added //tools/record_android_trace script to facilitate recording traces
413 from Android devices, automating start + stop-via-ctrl+c + pull + open.
414 * Added auto-attachment of traces to Android bugreports if dumpstate is
415 invoked when a trace with bugreport_score > 0 is running.
416 SDK:
417 * Added ability to customize the timestamp of events via
418 ConvertTimestampToTraceTimeNs().
419 * Fixed support for category names that contain a space.
420 Trace Processor:
421 * Added ingestion and query support for Android end-to-end frame timing
422 events through the {actual, expected}_frame_timeline_slice tables.
423 * Added time-to-reportFullyDrawn (Android's API) to startup metrics.
424 * Fixed excessive memory usage when decoding traces containing callstacks
425 (https://github.com/google/perfetto/issues/83).
426 UI:
427 * Added ability to inspect the full trace config string from the
428 'Info and stats' page.
429 * Fixed 'TABLE/VIEW XXX already exists' in the Metrics page when running the
430 same metric twice.
431 * Fixed sorting of tracks using numeric sorting instead of lexicographic:
432 Thread {1, 2, 10, 11, 20} rather than Thread {1, 10, 11, 2, 20}.
433 * Fixed CSP-related bug that was preventing the UI to work on Firefox.
434 * Changed max zoom resolution to allow to zoom to sub-us events.
435
436
Primiano Tucci96755912021-01-05 12:15:17 +0100437v11.0 - 2021-01-01:
438 Tracing service and probes:
Sami Kyostilaae504d42020-12-02 12:00:25 +0000439 * Added trace packet interceptor API for rerouting trace data into
440 non-Perfetto systems.
Sami Kyostila6c151262020-12-15 18:48:51 +0000441 * Added support for printing track events to the console.
Sami Kyostila2778ac82020-12-21 16:12:27 +0000442 * Added a way to observe track event tracing sessions starting and
443 stopping.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000444 Trace Processor:
Primiano Tucci96755912021-01-05 12:15:17 +0100445 * Added "ancestor_slice" and "experimental_ancestor_stack_profile_callsite"
446 table functions to look up ancestors of CPU stack samples in profiler
447 tables.
448 * Added power metric reporting suspend/resume time periods.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000449 UI:
Primiano Tucci96755912021-01-05 12:15:17 +0100450 * Fixed CPU time calculation in example queries.
451 * Added tracks to debug Android SystemUI jank.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000452
Primiano Tucci5d2be3a2020-12-01 20:42:45 +0100453
454v10.0 - 2020-12-01:
455 Tracing service and probes:
456 * Fixed crash of tracing service if a client is unresponsive on the IPC
457 channel. Clients are disconnected if they don't respond to IPCs for 10s.
458 * Added cmdline arguments for integration within ChromeOS system image
459 (--{producer,consumer}-socket-{group,mode} for chmod-ing sockets).
460 * Changed path lookup logic for traced socket. /run/perfetto/ is used if the
461 directory exists, falling back on /tmp/ otherwise.
462 * Added support for kernel frame symbolization to the traced_perf callstack
463 sampler.
464 * Added support for resolving ftrace event arguments that require
465 symbolization against printk_format.
466 Trace Processor:
467 * Added .read command to inject a SQL query file, similar to the -q cmdline.
468 * Added trace-based metrics to root cause jank in Android System UI.
469 * Added symbolization support for ELF files on Windows for heap and
470 callstack profilers.
471 * Added support for symbolizing names of workqueue ftrace events.
472 * Improved Android startup metric with activity restart time.
473 UI:
474 * Added support for navigating flows with Ctrl+[ / Ctr+].
475 * Improved query result panel, moved to the bottom group allowing
476 simultaneous query result and timeline views.
477 * Fixed data corruption when recording traces via the WebUSB-based Record
478 page in the UI.
479
480
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000481v9.0 - 2020-11-01:
482 Tracing service and probes:
Sami Kyostilaf99230f2020-10-15 10:38:32 +0000483 * Added support for recording traces from a system service through the
484 client API.
485 * The client library now reconnects producers automatically if the
486 connection to the tracing service is lost. Also fixed crashes in ongoing
487 tracing sessions when a disconnect occurs.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000488 * Added support for dpu and g2d ftrace events.
489 * Enabled commit batching and producer side patching of chunks.
490 * Add support for symbolizing kernel symbols for ftrace events.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100491 Trace Processor:
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000492 * Fixed type affinity of string columns.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100493 UI:
Lalit Maganti09549602020-10-01 16:47:00 +0100494 * Added initial support for running metrics from the UI.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000495 * Added support for displaying all flows when a slice or area is selected.
496 * Highlight nodes that match the 'focus' string in the flamegraph.
497 * Added search within slice args.
498 * Fixed details panel height and moved query panel into details panel.
499 * Enabled re-sharing of postMessage traces by echoing back the original URL.
500 * Improved record page error messages.
Lalit Maganti09549602020-10-01 16:47:00 +0100501
502
503v8.0 - 2020-10-01:
504 Tracing service and probes:
505 * Added API for querying registered data sources and their capabilities.
506 * Added support for profiling heap allocations on Linux via LD_PRELOAD.
507 * Fixed possible race when initializing the consumer library.
508 * Fixed subtle bugs on systems with 16KB system pages.
509 Trace Processor:
510 * Added a table which lists available metrics.
511 * Added Python bindings on PyPi in the 'perfetto' package.
512 * Added support for running trace_processor_shell on Android.
513 * Added per-process metrics for GPU memory usage.
514 * Added support for exporting flow events to JSON.
515 * Added dynamic tables for navigating between slices of flows.
516 UI:
517 * Changed time marking: horizontal selection doesn't gray out anymore,
518 pressing 'm' marks the range.
519 * Added initial support for displaying flow event arrows.
520 * Improved ordering of all thread tracks under process grouping.
521 * Fixed UI crashes due to metric errors
522 * Fixed selection of thread state slices.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100523
524
Primiano Tucci816506e2020-09-01 18:13:12 +0200525v7.0 - 2020-09-01:
526 Tracing service and probes:
527 * Added auto-reconnection to the SDK. Tracing::Initialize() now retries in
528 the background, instead of failing, if the tracing service is unrechable.
529 * Added support for recording cpuhp (CPU hotplug) ftrace events.
530 * Fixed heap profiling unwinding on multi-ABI systems.
531 * Fixed reporting of live objects in the native heap profiler when using
532 --dump-at-max.
533 * Fixed crash when writing trace events with field nesting level > 10.
534 Trace Processor:
535 * Added Python bindings, see
536 https://perfetto.dev/docs/analysis/trace-processor#python-api .
537 * Added ingestion for Chrome instant events and Chrome flow events.
538 * Added ingestion for Android GPU memory events and sched_blocked_reason.
539 * Added WebView power metric.
540 * Added support for WSL1 where Async I/O is not available.
541 * Improved detection of Android suspend/resume events.
542 UI:
543 * Added GPU memory recording controls and ingestion code. Requires a recent
544 Android 12+ kernel.
545 * Added details panel for flow events, showed when the user selects a slice
546 involved in a flow (arrows in the UI are still being worked on).
547 * Added instant events rendering.
548 * Added Google Analytics.
549 * Fixed I/O thread-states in 4.14 kernels to deal with the removal of
550 wake-kill using sched_blocked_reason.
551 * Fixed "Perfetto UI started debugging this browser" showing when opening
552 the UI and the Chrome extension is installed.
553 Misc:
554 * Update language to comply with Android's inclusive language guidance.
555
556
Primiano Tucci6d7badc2020-07-31 19:03:27 +0200557v6.0 - 2020-08-01:
558 Tracing service and probes:
559 * Added ftrace thermal events.
560 * Added support for custom allocators to the heap profiler. Allows
561 developers to report memory allocations that are not done through malloc.
562 * Added detailed timestamping of key tracing session events.
563 * Added support for building tracing services on CrOS (system-wide tracing).
564 * Fixed filtering out of stale ftrace data that predates the beginning of
565 the tracing session.
566 Trace Processor:
567 * Improved profile symbolizer. PERFETTO_SYMBOLIZER_MODE=index discovers
568 symbol files by build id rather than name.
569 * Added screen-state Android metrics.
570 UI:
571 * Added 'Info and stats' page to debug data losses and trace stats.
572 * Added full cmdline to process detail panel.
573 * Improved performance of async tracks using quantized queries.
574 * Improved performance of counter and slice tracks for long traces by
575 pre-caching quantized track data.
576 * Improved actionablility of crash dialog when the Wasm module OOMs.
577
578
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100579v5.0 - 2020-07-01:
580 Tracing service and probes:
581 * Added gpu_mem_total ftrace event.
582 * Added TrustZone (scm start/end) event.
583 * Added protos for GPU memory tracking and updated render stages proto.
584 * Added time_in_state probe for Android (CPU time broken down by frequency).
585
586 Trace Processor:
587 * Added ingestion of IRQ and SoftIRQ events.
588 * Added ingestion of workqueue events. KAddr symbolization still missing.
589 * Added ingestion of voltage regulators and board clock change events.
590 * Added ingestion of new ION ion_buffer_create/destroy events.
591 * Added ingestion of TrustZone (scm start/end) events.
592 * Added SurfaceFlinger derived events (tracking of missed frames).
593 * Changed parsing of scheduler task state on 4.14 kernels.
594 * Changed importing of Java heap graphs: allow partial dumps.
595 * Improved performance of the SQL query engine.
596
597 UI:
598 * Added dedicated query page for custom SQL queries.
599 * Added navigation links for Binder slices.
600 * Removed overview summary mode when zoomed out.
601 * Fixed recording page when targeting Android P.
602 * Improved slice pan/zoom performance by quantizing.