blob: 710d3c9ddec7e55474c69b1605ccf35fd219dafa [file] [log] [blame]
Primiano Tucci2ab19f62020-07-01 21:28:31 +01001Unreleased:
2 Tracing service and probes:
Primiano Tuccie9e81c02021-12-03 18:02:58 +00003 *
4 Trace Processor:
Primiano Tucci1d518b42022-01-11 19:09:45 +00005 * Changed the argument for the trace path in constructor of TraceProcessor
6 in the Python API from |file_path| to |trace|.
Lalit Maganticb8e0ff2022-01-11 15:36:37 +00007 |file_path| is deprecated and may be removed in the future.
Primiano Tucci1d518b42022-01-11 19:09:45 +00008 * Changed the Python API constructor. Now it takes a TraceProcessorConfig
Lalit Maganticb8e0ff2022-01-11 15:36:37 +00009 instead of passing parameters directly. This may break existing code
10 but migration should be trivial (all current options are still
11 supported).
Primiano Tucci1d518b42022-01-11 19:09:45 +000012 * Fixed a HTTP keepalive bug in trace_processor --httpd. The bug, introduced
13 in v22.0, caused each RPC request to close the connection, effectively
14 defeating the 'Connection: Keep-Alive', after each query made by the UI.
Primiano Tuccie9e81c02021-12-03 18:02:58 +000015 UI:
16 *
17 SDK:
18 *
19
20
Primiano Tucci26e2acb2021-12-07 20:27:53 +000021v22.1 - 2021-12-07:
22 Tracing service and probes:
23 * Added workaround for a Linux kernel bug causing some ftrace strings to
24 be non-null-terminated (https://github.com/torvalds/linux/commit/f0a5157).
25 Trace Processor:
26 * Fixed build failures on Windows.
27
28
Primiano Tuccie9e81c02021-12-03 18:02:58 +000029v22.0 - 2021-12-03:
30 Tracing service and probes:
Lalit Maganti7030e782021-11-08 13:12:42 +000031 * Added Android SDK version to the SystemInfo trace packet.
Primiano Tucci2277f062021-11-08 22:24:05 +000032 * Changed compiler flags. Assume recent x64 CPUs (-msse4.2 -mavx -mpopcnt).
33 This behavior affects only standalone builds and can be changed by setting
34 enable_perfetto_x64_cpu_opt=false in the GN args.
Daniele Di Proietto4d9665b2021-11-24 18:25:46 +000035 * The java heap profiler now rescans all the processes every time for
36 continous_dump_config. The scan_pids_only_on_start can be used to restore
37 the old behavior.
Primiano Tuccie9e81c02021-12-03 18:02:58 +000038 * Added support for building on ARM Macs.
39 * Added support for the rss_stat_throttled event on Android via
40 FtraceConfig.throttle_rss_stat. In newer Android kernels the base rss_stat
41 event is now unthrottled. rss_stat used to be throttled by a downstream
42 kernel change, unnecessary after https://lkml.org/lkml/2021/10/25/1411 .
43 atrace.rc configures throttling from userspace at boot.
44 * Fixed a bug that caused IPCs to stall traced and hit the watchdog if in
45 the middle of a suspend/resume. Switched from SND_TIMEO to poll(POLLOUT).
46 * Added "linux.sysfs_power" data source to poll /sys/class/power_supply/
47 and report periodically battery charge and drain rate if supported.
Primiano Tucci6a46cc72021-10-04 18:57:12 +010048 Trace Processor:
Primiano Tuccie9e81c02021-12-03 18:02:58 +000049 * Speeded up proto trace ingestion by 2x (~20 MB/s -> ~40 MB/s).
Lalit Maganti1cf65eb2021-11-10 16:13:48 +000050 * Changed LIKE comparisions to be case-senstive. This may break existing
51 queries but was a necessary from a performance perspective.
Primiano Tuccie9e81c02021-12-03 18:02:58 +000052 Going forward, GLOB must be used, instead of LIKE, for checked in metrics
53 to avoid unnecessary slowdowns.
Primiano Tucci2277f062021-11-08 22:24:05 +000054 * Changed compiler flags, assume recent x64 CPUs (see above).
Hector Dearmanee80bcb2021-11-30 13:51:30 +000055 * Changed how displayTimeUnit is handled in JSON traces to match catapult.
Primiano Tuccie9e81c02021-12-03 18:02:58 +000056 * Added websocket endpoint to RPC interface to reduce query latency.
57 * Added support for hot-reloading metrics (see //docs/analysis/metrics.md).
Primiano Tucci6a46cc72021-10-04 18:57:12 +010058 UI:
Primiano Tuccie9e81c02021-12-03 18:02:58 +000059 * Added ability to save/restore record config. Remember last used config.
60 * Fixed bug causing the recording page to hold onto the USB interface making
61 adb unusable after a recording session.
Primiano Tucci6a46cc72021-10-04 18:57:12 +010062 SDK:
Primiano Tucci360f0232021-11-04 13:41:08 +000063 * Added UpdateDataSource() descriptor IPC endpoint to allow updates of the
64 data source capabilities (e.g., category list for track event).
Primiano Tucci6a46cc72021-10-04 18:57:12 +010065
66
Primiano Tucciea727872021-11-02 21:42:05 +000067v21.0 - 2021-11-01:
68 Tracing service and probes:
69 * Added reporting of last 8 PERFETTO_LOG() entries and crash keys to
70 crash tombstones on Android.
71 * Changed kallsym parser to save 100ms for starting a tracing session with
72 enable_ksyms=true.
73 * Removed advertisement of the built-in data sources "android.heapprofd",
74 "android.java_hprof", "linux.perf" on Linux and other platforms. Built-in
75 data sources are only used to lazy-start daemons on Android OS.
76 * Changed ACL files on Android atrace.rc to support to up to 24 ftrace cpus.
77 No change on Linux which remains unlimited.
78 Trace Processor:
79 * Changed protobuf decoders to use less stack and fall back on heap sooner
80 (before: 16KB of stack per decoder, after: 1.6KB). It caused problems with
81 some embedders which use smaller per-thread stacks.
82 * Added support for SPAN OUTER JOIN on unpartitioned tables.
83 * Improved performance of as_pandas_dataframe() in the Python API by 16x.
84 UI:
85 * Added visualization of direct_reclaim ftrace events.
86 SDK:
87 * Added perfetto::{Flow,TerminatingFlow} to the track-event library.
88
89
Primiano Tuccia94219a2021-10-05 10:38:24 +010090v20.1 - 2021-10-05:
91 Tracing service and probes:
92 * Fixed standalone Windows build. Updated the llvm-win toolchain.
93
94
Primiano Tucci6a46cc72021-10-04 18:57:12 +010095v20.0 - 2021-10-03:
96 Tracing service and probes:
Primiano Tucci5eabf6f2021-09-07 14:49:48 +010097 * Removed DCHECK that would cause crashes when a debug build of the service
98 is used with a producer built with -DNDEBUG.
Daniele Di Proiettoa4c180e2021-09-15 15:42:34 +000099 * Changed the service-side field-level filtering configuration protobuf
100 field number, because the feature had a bug. This is effectively
101 equivalent to deprecating the feature and reintroducing it under a
102 different name.
Primiano Tucci6a46cc72021-10-04 18:57:12 +0100103 * Added support for boot tracing on Android. Early kernel tracing (prior to
104 the point when /data is mounted) is not yet supported. For instructions
105 see /docs/case-studies/android-boot-tracing.md .
Primiano Tucci5f303142021-06-02 10:28:50 +0100106 Trace Processor:
Lalit Maganti09002982021-09-10 17:04:08 +0100107 * Added reqiurement of separating queries by semi-colon (;) followed by
108 new-line when specifying a query file with -q to trace processor shell.
Zaina Al-Mashni5ed83f92021-09-09 09:08:38 +0000109 * Added "ancestor_slice_by_stack" and "descendant_slice_by_stack" table
110 functions to walk up and down the slice stacks.
Lalit Maganti09e840c2021-09-22 15:23:17 +0100111 * Overhauled windowed sorting to be based on packet ordering and
Primiano Tucci6a46cc72021-10-04 18:57:12 +0100112 lifecycle events inside the trace instead of time-based ordering.
113 * Removed |SortingMode::kForceFlushPeriodWindowedSort| due to changes to the
114 sorting algorithm, which is now based on Flush events rather than time.
115 Embedders should switch to |SortingMode::kDefaultHeuristics|. Other
116 SortingMode enum values are no-ops and will be removed in future versions.
Primiano Tucci876be6d2021-08-02 20:58:06 +0100117 UI:
Primiano Tucci6a46cc72021-10-04 18:57:12 +0100118 * Added initial flamegraph support for traced_perf callstack samples.
119 * Added initial Pivot table for aggregation of userspace slices. The feature
120 is disabled by default for and requires manual enabling via
121 https://ui.perfetto.dev/#!/flags .
Primiano Tucci876be6d2021-08-02 20:58:06 +0100122 SDK:
Primiano Tucci1a69d012021-09-07 14:52:27 +0100123 * Changed DCHECK and DLOGs to be always disabled in SDK builds, regardless
124 of NDEBUG.
Primiano Tucci876be6d2021-08-02 20:58:06 +0100125
126
Primiano Tuccie356c102021-09-07 11:47:47 +0100127v19.0 - 2021-09-02:
128 Tracing service and probes:
129 * Added ftrace clock reporting to the trace.
130 Trace Processor:
131 * Added support for longs/doubles to RUN_METRIC.
132 * Added power profile data for sunfish, redfin, and bramble.
133 * Added experimental Python library for computing slice breakdowns.
134 * Fixed parsing of JSON escape sequences.
135 * Fixed JSON trace detection.
136 UI:
137 * Added local cacheing of traces. Traces are reloaded in case of refresh or
138 tab being discarded by the browser.
139 * Added icon to distinguish metric-derived tracks.
140 * Added release channel selector to feature flags page.
141 * Fixed crash with null slice names.
142 SDK:
143 * Added some missing NESTABLE_ASYNC legacy trace macros.
144 * Fixed reporting of producer uid in --query.
145 * Fixed version numbering scheme for minor versions. Previously versions
146 were numbered as like v19.0.42 where 42 represented the number of commits
147 since the last major version release. This was ambiguous in the presence
148 of branches. Now versions are numbered like v19.0-ab12cd34 where ab12cd34
149 is the shortened Git commit-ish.
150
151
Primiano Tucci876be6d2021-08-02 20:58:06 +0100152v18.0 - 2021-08-02:
153 Tracing service and probes:
154 * Added cross-compiler toolchains for Linux-{arm,64} based on Debian Sid.
155 These will be used for generating monthly releases' prebuilts via LUCI.
156 Trace Processor:
157 * Added 'android_gpu' metric to report residency information for each GPU
158 frequency (via `trace_processor_shell --run-metrics android_gpu`).
Primiano Tuccie2422be2021-07-20 18:19:45 +0100159 * Removed the RawQuery RPC interface.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100160 UI:
Primiano Tuccie2422be2021-07-20 18:19:45 +0100161 * Added a highlighted section to thread slices to visualize CPU time
Zaina Al-Mashni3911f612021-07-13 18:09:34 +0000162 (darker) verses wall time (lighter).
Primiano Tucci876be6d2021-08-02 20:58:06 +0100163 * Added global counter tracks for perf counters (e.g. "CPU 0 cycles", "CPU 0
164 instructions") when the 'linux.perf' data source (traced_perf) is used.
165 * Added a (feature) 'Flags' page to enable/disable individual metrics.
166 * Fixed races that could cause occasional crashes when loading a trace
167 from a permalink.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100168 SDK:
Primiano Tuccie2422be2021-07-20 18:19:45 +0100169 * Fix undefined reference on ~TracingMuxerFake when building the SDK.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100170
171
172v17.0 - 2021-07-02:
173 Tracing service and probes:
Ryan Savitski6444aad2021-07-02 16:30:57 +0100174 * Fixed a bug in ftrace parsing of absolute timestamps
175 (RINGBUF_TYPE_TIME_STAMP), encountered on Linux kernels 5.9+.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100176 * Fixed a bug in --save-for-bugreport causing 0-length traces if the
177 selected trace declared one or more triggers in the config.
178 * Fixed a bug in tracebox causing the PERFETTO_PRODUCER_SOCK_NAME env
179 var to be ignored.
180 Trace Processor:
Primiano Tucci728230d2021-06-16 15:38:35 +0100181 * Changed CORS headers of --httpd mode to allow only https://ui.perfetto.dev
182 and http://localhost:10000. This affects only CORS-aware browser clients.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100183 * Added GPU frequency metrics.
Primiano Tucci5f303142021-06-02 10:28:50 +0100184 UI:
Primiano Tuccice51d522021-06-03 14:57:45 +0100185 * Fixed ADB connection issues ("unable to reset device") on Windows and Mac.
Primiano Tucci50199ce2021-07-02 14:50:53 +0100186 * Added caching of tracing in the cache storage so that the trace is
187 re-opened if a tab is killed (Chrome tab discarding or accidental CTRL+W).
Primiano Tucci5f303142021-06-02 10:28:50 +0100188 SDK:
Sami Kyostilac687c2e2021-06-03 13:00:45 +0100189 * Added support for writing track events using custom clock timestamps.
Primiano Tucci5f303142021-06-02 10:28:50 +0100190
191
Primiano Tucci5ca51f92021-06-08 10:29:35 +0100192v16.1 - 2021-06-08:
193 Tracing service and probes:
194 * Cherry-pick of r.android.com/1716718 which missed the v16 branch cut and
195 fixed MSVC 2019 builds.
196
197
Primiano Tucci5f303142021-06-02 10:28:50 +0100198v16.0 - 2021-06-01:
199 Tracing service and probes:
Primiano Tucci235610f2021-05-24 20:22:43 +0100200 * Added support for building most targets (including traced, SDK and
201 trace_processor_shell) from Windows using either clang-cl or MSVC 2019.
202 * Added tracebox, a monolithic binary to capture traces with one command
203 on Linux and older versions of Android (tested on Android Oreo).
Primiano Tucci5f303142021-06-02 10:28:50 +0100204 * Added support for service-side field-level filtering of traces. The
205 consumer can pass a filter bytecode and ensure that non-allowed fields
206 are never emitted in output.
207 * Added reporting of service version and producer SDK version into the trace
208 and `perfetto --query`.
209 * Fixed compatibility with Android versions older than Pie (for sideloading)
210 which cause failures when trying to enable atrace categories.
Primiano Tucci96755912021-01-05 12:15:17 +0100211 Trace Processor:
Primiano Tucci5f303142021-06-02 10:28:50 +0100212 * Added new RPC interface based on a bidirectional binary pipe. This allows
213 to simplify integration with out-of-process users. The existing --httpd
214 interface now exposes a single /rpc endpoint. Older endpoints are still
215 available for legacy clients.
216 * Added support for counters and instant events in JSON traces.
217 * Fixed support of displayTimeUnit in JSON traces.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000218 UI:
Primiano Tucci41327402021-06-01 20:28:00 +0100219 * Added warning dialog when trying to use a trace_processor_shell --httpd
220 which is too old.
221 * Added warning dialog when trying to use a trace_processor_shell --httpd
222 RPC instance from more than one tab.
Primiano Tucci5f303142021-06-02 10:28:50 +0100223 * Added links to convert the trace to JSON or systrace directly from the UI.
224 * Changed track sorting logic. Tracks are now sorted in groups (e.g.,
225 scheduling tracks, summary tracks, frame timeline tracks).
226 * Fixed crashes happening flakily when pushing traces via window.open().
Primiano Tucci8220de22021-05-05 09:53:37 +0100227
228
229v15.0 - 2021-05-05:
230 Tracing service and probes:
231 * Added support for {host,target}=aarch64 standalone builds.
232 * Added --background cmdline switch to traced and traced_probes services.
233 * Changed trigger_perfetto to ignore unknown command line arguments to
234 preserve forward compatibility.
235 * Added -a / --app cmdline argument to tools/record_android_trace.
236 Trace Processor:
237 * Added sanitisation of keys in nested debug annotation dictionaries.
238 * Changed Android startup metric: count CPU time of JIT thread pool, report
239 timestamp of activities during startup.
240 * Changed android_surfaceflinger metric, added missed frame counters.
241 * Changed version of SQLite to 3.35.4.
242 * Fixed importing of JSON traces with decimal (sub-us) timestamp.
243 * Fixed prepending "debug." prefix to debug annotations with non-interned
244 names.
245 UI:
246 * Added support to visualize the lifetime of individual dmabuf allocations
247 as async slices (datasource: already existing ftrace dmabuf event).
248 * Fixed visualization of unfinished slices to extend to the end of the
249 viewport.
250 SDK:
Alexander Timin129bdcf2021-04-16 11:36:37 +0000251 * Added support for passing arbitrary number of debug annotations to
252 TRACE_EVENT and combining them with lambdas.
253 * Added support for writing typed TrackEvent arguments using TRACE_EVENT
254 inline without lambdas.
Primiano Tucci8220de22021-05-05 09:53:37 +0100255 * Changed ConvertTimestampToTraceTimeNs to be a member of
256 TraceTimestampTraits<T> struct instead of a standalone function.
257 * Changed TracedValue to use nested DebugAnnotation proto instead of
258 DebugAnnotation::NestedValue.
Primiano Tucci7454e1a2021-04-01 13:03:19 +0100259
260
261v14.0 - 2021-04-01:
262 Tracing service and probes:
263 * Added support for polling power rails on Android from the newer
264 IPowerStats AIDL interface (previously using only the HAL interface).
265 * Fixed native heap profiler crash when ABI of heapprofd and profiled
266 process mismatch.
267 * Changed encoding format of Anroid managed heap profiler to reduce heap
268 dump sizes by delta-encoding object IDs.
269 Trace Processor:
270 * Added activity create/resume, layout inflation and resource timings to
271 the Android startup metric.
272 * Added chrome metadata key/value pairs (e.g. chrome version) into the
273 `metadata` table with 'cr-' prefixed keys.
274 * Added dma-buf-based memory metrics reporting total/avg/min/max dmabuf
275 allocation per-dmabuf-heap and per-process.
276 * Removed |force_full_sort| flag from config. This has been replaced
277 by setting the sorting mode to force a full sort.
278 UI:
279 * Added tools/symbolize-ui-crash script to resolve crash reports via
280 TypeScript source maps.
281 * Fixed newlines when copying Android event log lines into the clipboard.
282 * Fixed crash when selecting "Did not finish" slices.
283 * Fixed OOM dialog to give actionable instructions when opening large traces
284 rather than suggesting to file a bug.
Sami Kyostilaedf7c862021-03-11 13:33:35 +0000285 SDK:
Primiano Tucci7454e1a2021-04-01 13:03:19 +0100286 * Added /meson.build for bundling /sdk/perfetto.{cc,h} in Meson builds.
287 * Added support for counter trace points with the TRACE_COUNTER macro.
288
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000289
290v13.0 - 2021-03-01:
291 Tracing service and probes:
292 * Added ability to sample callstacks using kernel tracepoints as timebase.
293 * Added abililty to record the perf timebase counter values into the trace,
294 both combined callstack+counter or counter-only.
295 * Added abillity to trigger traces based on VM pressure on Android. Requires
296 a dedicated tracing instance in $tracefs/instances/mm_events.
297 Trace Processor:
Lalit Maganti88eb6982021-03-01 14:28:51 +0000298 * Added sorting mode to trace processor config to specify how trace
299 processor should sort events. The |force_full_sort| flag has been
300 deprecated (with replacement) and will be removed in the next version.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000301 * Added ingestion of frame timeline events into the
302 {expected,actual}_frame_timeline_slice tables.
303 * Added support for Mali's trace_marker_write ftrace event.
304 * Added memory metric based on newer android_fastrpc kernel events.
Primiano Tucci96755912021-01-05 12:15:17 +0100305 UI:
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000306 * Added flow events support for instant events and async tracks.
307 * Added support for Android frame timeline events. They allow inspecting
308 end-to-end expected vs actual app-to-surfaceflinger frame times.
309 * Added ability to switch between Canary and Stable channels in the UI.
310 * Added ability to drag&drop to open trace files.
311 * Changed UI serving infrastructure, old ui versions can be now retrieved by
312 directly opening https://ui.perfetto.dev/v12.1.269/ .
313 * Removed thread state track for threads that have no activity.
Sami Kyostilae8c0ff52021-02-16 11:26:16 +0000314 SDK:
315 * Use process start time hashed with the process id as a unique process
316 identifier, allowing multiple independent users of the SDK in the same
317 process to interleave their events on shared tracks.
Sami Kyostila86b10c52021-02-16 16:50:42 +0000318 * Record process and thread names into the trace.
Sami Kyostila67cdc662021-02-26 16:42:14 +0000319 * Add ring buffer tracing support, i.e., periodic clearing of incremental
320 state.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000321 Misc:
322 * Convert python scripts to python3.
Primiano Tucci96755912021-01-05 12:15:17 +0100323
324
Primiano Tucci71a92392021-02-01 23:45:28 +0100325v12.1 - 2021-02-01:
326 Misc:
327 * Fixed CHANGELOG which was missed in the 12.0 branch cut, causing
328 mis-labeling of the version code in the v12.x branch as v11.0..N
329
330
Primiano Tucci9c294a42021-02-01 18:04:23 +0100331v12.0 - 2021-02-01:
332 Tracing service and probes:
333 * Added more helpful error messages if the client library is used without
334 having been initialized.
335 * Added //tools/record_android_trace script to facilitate recording traces
336 from Android devices, automating start + stop-via-ctrl+c + pull + open.
337 * Added auto-attachment of traces to Android bugreports if dumpstate is
338 invoked when a trace with bugreport_score > 0 is running.
339 SDK:
340 * Added ability to customize the timestamp of events via
341 ConvertTimestampToTraceTimeNs().
342 * Fixed support for category names that contain a space.
343 Trace Processor:
344 * Added ingestion and query support for Android end-to-end frame timing
345 events through the {actual, expected}_frame_timeline_slice tables.
346 * Added time-to-reportFullyDrawn (Android's API) to startup metrics.
347 * Fixed excessive memory usage when decoding traces containing callstacks
348 (https://github.com/google/perfetto/issues/83).
349 UI:
350 * Added ability to inspect the full trace config string from the
351 'Info and stats' page.
352 * Fixed 'TABLE/VIEW XXX already exists' in the Metrics page when running the
353 same metric twice.
354 * Fixed sorting of tracks using numeric sorting instead of lexicographic:
355 Thread {1, 2, 10, 11, 20} rather than Thread {1, 10, 11, 2, 20}.
356 * Fixed CSP-related bug that was preventing the UI to work on Firefox.
357 * Changed max zoom resolution to allow to zoom to sub-us events.
358
359
Primiano Tucci96755912021-01-05 12:15:17 +0100360v11.0 - 2021-01-01:
361 Tracing service and probes:
Sami Kyostilaae504d42020-12-02 12:00:25 +0000362 * Added trace packet interceptor API for rerouting trace data into
363 non-Perfetto systems.
Sami Kyostila6c151262020-12-15 18:48:51 +0000364 * Added support for printing track events to the console.
Sami Kyostila2778ac82020-12-21 16:12:27 +0000365 * Added a way to observe track event tracing sessions starting and
366 stopping.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000367 Trace Processor:
Primiano Tucci96755912021-01-05 12:15:17 +0100368 * Added "ancestor_slice" and "experimental_ancestor_stack_profile_callsite"
369 table functions to look up ancestors of CPU stack samples in profiler
370 tables.
371 * Added power metric reporting suspend/resume time periods.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000372 UI:
Primiano Tucci96755912021-01-05 12:15:17 +0100373 * Fixed CPU time calculation in example queries.
374 * Added tracks to debug Android SystemUI jank.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000375
Primiano Tucci5d2be3a2020-12-01 20:42:45 +0100376
377v10.0 - 2020-12-01:
378 Tracing service and probes:
379 * Fixed crash of tracing service if a client is unresponsive on the IPC
380 channel. Clients are disconnected if they don't respond to IPCs for 10s.
381 * Added cmdline arguments for integration within ChromeOS system image
382 (--{producer,consumer}-socket-{group,mode} for chmod-ing sockets).
383 * Changed path lookup logic for traced socket. /run/perfetto/ is used if the
384 directory exists, falling back on /tmp/ otherwise.
385 * Added support for kernel frame symbolization to the traced_perf callstack
386 sampler.
387 * Added support for resolving ftrace event arguments that require
388 symbolization against printk_format.
389 Trace Processor:
390 * Added .read command to inject a SQL query file, similar to the -q cmdline.
391 * Added trace-based metrics to root cause jank in Android System UI.
392 * Added symbolization support for ELF files on Windows for heap and
393 callstack profilers.
394 * Added support for symbolizing names of workqueue ftrace events.
395 * Improved Android startup metric with activity restart time.
396 UI:
397 * Added support for navigating flows with Ctrl+[ / Ctr+].
398 * Improved query result panel, moved to the bottom group allowing
399 simultaneous query result and timeline views.
400 * Fixed data corruption when recording traces via the WebUSB-based Record
401 page in the UI.
402
403
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000404v9.0 - 2020-11-01:
405 Tracing service and probes:
Sami Kyostilaf99230f2020-10-15 10:38:32 +0000406 * Added support for recording traces from a system service through the
407 client API.
408 * The client library now reconnects producers automatically if the
409 connection to the tracing service is lost. Also fixed crashes in ongoing
410 tracing sessions when a disconnect occurs.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000411 * Added support for dpu and g2d ftrace events.
412 * Enabled commit batching and producer side patching of chunks.
413 * Add support for symbolizing kernel symbols for ftrace events.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100414 Trace Processor:
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000415 * Fixed type affinity of string columns.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100416 UI:
Lalit Maganti09549602020-10-01 16:47:00 +0100417 * Added initial support for running metrics from the UI.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000418 * Added support for displaying all flows when a slice or area is selected.
419 * Highlight nodes that match the 'focus' string in the flamegraph.
420 * Added search within slice args.
421 * Fixed details panel height and moved query panel into details panel.
422 * Enabled re-sharing of postMessage traces by echoing back the original URL.
423 * Improved record page error messages.
Lalit Maganti09549602020-10-01 16:47:00 +0100424
425
426v8.0 - 2020-10-01:
427 Tracing service and probes:
428 * Added API for querying registered data sources and their capabilities.
429 * Added support for profiling heap allocations on Linux via LD_PRELOAD.
430 * Fixed possible race when initializing the consumer library.
431 * Fixed subtle bugs on systems with 16KB system pages.
432 Trace Processor:
433 * Added a table which lists available metrics.
434 * Added Python bindings on PyPi in the 'perfetto' package.
435 * Added support for running trace_processor_shell on Android.
436 * Added per-process metrics for GPU memory usage.
437 * Added support for exporting flow events to JSON.
438 * Added dynamic tables for navigating between slices of flows.
439 UI:
440 * Changed time marking: horizontal selection doesn't gray out anymore,
441 pressing 'm' marks the range.
442 * Added initial support for displaying flow event arrows.
443 * Improved ordering of all thread tracks under process grouping.
444 * Fixed UI crashes due to metric errors
445 * Fixed selection of thread state slices.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100446
447
Primiano Tucci816506e2020-09-01 18:13:12 +0200448v7.0 - 2020-09-01:
449 Tracing service and probes:
450 * Added auto-reconnection to the SDK. Tracing::Initialize() now retries in
451 the background, instead of failing, if the tracing service is unrechable.
452 * Added support for recording cpuhp (CPU hotplug) ftrace events.
453 * Fixed heap profiling unwinding on multi-ABI systems.
454 * Fixed reporting of live objects in the native heap profiler when using
455 --dump-at-max.
456 * Fixed crash when writing trace events with field nesting level > 10.
457 Trace Processor:
458 * Added Python bindings, see
459 https://perfetto.dev/docs/analysis/trace-processor#python-api .
460 * Added ingestion for Chrome instant events and Chrome flow events.
461 * Added ingestion for Android GPU memory events and sched_blocked_reason.
462 * Added WebView power metric.
463 * Added support for WSL1 where Async I/O is not available.
464 * Improved detection of Android suspend/resume events.
465 UI:
466 * Added GPU memory recording controls and ingestion code. Requires a recent
467 Android 12+ kernel.
468 * Added details panel for flow events, showed when the user selects a slice
469 involved in a flow (arrows in the UI are still being worked on).
470 * Added instant events rendering.
471 * Added Google Analytics.
472 * Fixed I/O thread-states in 4.14 kernels to deal with the removal of
473 wake-kill using sched_blocked_reason.
474 * Fixed "Perfetto UI started debugging this browser" showing when opening
475 the UI and the Chrome extension is installed.
476 Misc:
477 * Update language to comply with Android's inclusive language guidance.
478
479
Primiano Tucci6d7badc2020-07-31 19:03:27 +0200480v6.0 - 2020-08-01:
481 Tracing service and probes:
482 * Added ftrace thermal events.
483 * Added support for custom allocators to the heap profiler. Allows
484 developers to report memory allocations that are not done through malloc.
485 * Added detailed timestamping of key tracing session events.
486 * Added support for building tracing services on CrOS (system-wide tracing).
487 * Fixed filtering out of stale ftrace data that predates the beginning of
488 the tracing session.
489 Trace Processor:
490 * Improved profile symbolizer. PERFETTO_SYMBOLIZER_MODE=index discovers
491 symbol files by build id rather than name.
492 * Added screen-state Android metrics.
493 UI:
494 * Added 'Info and stats' page to debug data losses and trace stats.
495 * Added full cmdline to process detail panel.
496 * Improved performance of async tracks using quantized queries.
497 * Improved performance of counter and slice tracks for long traces by
498 pre-caching quantized track data.
499 * Improved actionablility of crash dialog when the Wasm module OOMs.
500
501
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100502v5.0 - 2020-07-01:
503 Tracing service and probes:
504 * Added gpu_mem_total ftrace event.
505 * Added TrustZone (scm start/end) event.
506 * Added protos for GPU memory tracking and updated render stages proto.
507 * Added time_in_state probe for Android (CPU time broken down by frequency).
508
509 Trace Processor:
510 * Added ingestion of IRQ and SoftIRQ events.
511 * Added ingestion of workqueue events. KAddr symbolization still missing.
512 * Added ingestion of voltage regulators and board clock change events.
513 * Added ingestion of new ION ion_buffer_create/destroy events.
514 * Added ingestion of TrustZone (scm start/end) events.
515 * Added SurfaceFlinger derived events (tracking of missed frames).
516 * Changed parsing of scheduler task state on 4.14 kernels.
517 * Changed importing of Java heap graphs: allow partial dumps.
518 * Improved performance of the SQL query engine.
519
520 UI:
521 * Added dedicated query page for custom SQL queries.
522 * Added navigation links for Binder slices.
523 * Removed overview summary mode when zoomed out.
524 * Fixed recording page when targeting Android P.
525 * Improved slice pan/zoom performance by quantizing.