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