blob: b0c3750cb8fb113be3d3c28df042d65b15a928fc [file] [log] [blame]
Primiano Tucci2ab19f62020-07-01 21:28:31 +01001Unreleased:
2 Tracing service and probes:
Primiano Tucci9c294a42021-02-01 18:04:23 +01003 *
Primiano Tucci96755912021-01-05 12:15:17 +01004 Trace Processor:
Primiano Tucci7454e1a2021-04-01 13:03:19 +01005 *
Primiano Tuccie60b7c82021-03-03 14:09:35 +00006 UI:
7 *
Primiano Tucci7454e1a2021-04-01 13:03:19 +01008
9
10v14.0 - 2021-04-01:
11 Tracing service and probes:
12 * Added support for polling power rails on Android from the newer
13 IPowerStats AIDL interface (previously using only the HAL interface).
14 * Fixed native heap profiler crash when ABI of heapprofd and profiled
15 process mismatch.
16 * Changed encoding format of Anroid managed heap profiler to reduce heap
17 dump sizes by delta-encoding object IDs.
18 Trace Processor:
19 * Added activity create/resume, layout inflation and resource timings to
20 the Android startup metric.
21 * Added chrome metadata key/value pairs (e.g. chrome version) into the
22 `metadata` table with 'cr-' prefixed keys.
23 * Added dma-buf-based memory metrics reporting total/avg/min/max dmabuf
24 allocation per-dmabuf-heap and per-process.
25 * Removed |force_full_sort| flag from config. This has been replaced
26 by setting the sorting mode to force a full sort.
27 UI:
28 * Added tools/symbolize-ui-crash script to resolve crash reports via
29 TypeScript source maps.
30 * Fixed newlines when copying Android event log lines into the clipboard.
31 * Fixed crash when selecting "Did not finish" slices.
32 * Fixed OOM dialog to give actionable instructions when opening large traces
33 rather than suggesting to file a bug.
Sami Kyostilaedf7c862021-03-11 13:33:35 +000034 SDK:
Primiano Tucci7454e1a2021-04-01 13:03:19 +010035 * Added /meson.build for bundling /sdk/perfetto.{cc,h} in Meson builds.
36 * Added support for counter trace points with the TRACE_COUNTER macro.
37
Primiano Tuccie60b7c82021-03-03 14:09:35 +000038
39v13.0 - 2021-03-01:
40 Tracing service and probes:
41 * Added ability to sample callstacks using kernel tracepoints as timebase.
42 * Added abililty to record the perf timebase counter values into the trace,
43 both combined callstack+counter or counter-only.
44 * Added abillity to trigger traces based on VM pressure on Android. Requires
45 a dedicated tracing instance in $tracefs/instances/mm_events.
46 Trace Processor:
Lalit Maganti88eb6982021-03-01 14:28:51 +000047 * Added sorting mode to trace processor config to specify how trace
48 processor should sort events. The |force_full_sort| flag has been
49 deprecated (with replacement) and will be removed in the next version.
Primiano Tuccie60b7c82021-03-03 14:09:35 +000050 * Added ingestion of frame timeline events into the
51 {expected,actual}_frame_timeline_slice tables.
52 * Added support for Mali's trace_marker_write ftrace event.
53 * Added memory metric based on newer android_fastrpc kernel events.
Primiano Tucci96755912021-01-05 12:15:17 +010054 UI:
Primiano Tuccie60b7c82021-03-03 14:09:35 +000055 * Added flow events support for instant events and async tracks.
56 * Added support for Android frame timeline events. They allow inspecting
57 end-to-end expected vs actual app-to-surfaceflinger frame times.
58 * Added ability to switch between Canary and Stable channels in the UI.
59 * Added ability to drag&drop to open trace files.
60 * Changed UI serving infrastructure, old ui versions can be now retrieved by
61 directly opening https://ui.perfetto.dev/v12.1.269/ .
62 * Removed thread state track for threads that have no activity.
Sami Kyostilae8c0ff52021-02-16 11:26:16 +000063 SDK:
64 * Use process start time hashed with the process id as a unique process
65 identifier, allowing multiple independent users of the SDK in the same
66 process to interleave their events on shared tracks.
Sami Kyostila86b10c52021-02-16 16:50:42 +000067 * Record process and thread names into the trace.
Sami Kyostila67cdc662021-02-26 16:42:14 +000068 * Add ring buffer tracing support, i.e., periodic clearing of incremental
69 state.
Primiano Tuccie60b7c82021-03-03 14:09:35 +000070 Misc:
71 * Convert python scripts to python3.
Primiano Tucci96755912021-01-05 12:15:17 +010072
73
Primiano Tucci71a92392021-02-01 23:45:28 +010074v12.1 - 2021-02-01:
75 Misc:
76 * Fixed CHANGELOG which was missed in the 12.0 branch cut, causing
77 mis-labeling of the version code in the v12.x branch as v11.0..N
78
79
Primiano Tucci9c294a42021-02-01 18:04:23 +010080v12.0 - 2021-02-01:
81 Tracing service and probes:
82 * Added more helpful error messages if the client library is used without
83 having been initialized.
84 * Added //tools/record_android_trace script to facilitate recording traces
85 from Android devices, automating start + stop-via-ctrl+c + pull + open.
86 * Added auto-attachment of traces to Android bugreports if dumpstate is
87 invoked when a trace with bugreport_score > 0 is running.
88 SDK:
89 * Added ability to customize the timestamp of events via
90 ConvertTimestampToTraceTimeNs().
91 * Fixed support for category names that contain a space.
92 Trace Processor:
93 * Added ingestion and query support for Android end-to-end frame timing
94 events through the {actual, expected}_frame_timeline_slice tables.
95 * Added time-to-reportFullyDrawn (Android's API) to startup metrics.
96 * Fixed excessive memory usage when decoding traces containing callstacks
97 (https://github.com/google/perfetto/issues/83).
98 UI:
99 * Added ability to inspect the full trace config string from the
100 'Info and stats' page.
101 * Fixed 'TABLE/VIEW XXX already exists' in the Metrics page when running the
102 same metric twice.
103 * Fixed sorting of tracks using numeric sorting instead of lexicographic:
104 Thread {1, 2, 10, 11, 20} rather than Thread {1, 10, 11, 2, 20}.
105 * Fixed CSP-related bug that was preventing the UI to work on Firefox.
106 * Changed max zoom resolution to allow to zoom to sub-us events.
107
108
Primiano Tucci96755912021-01-05 12:15:17 +0100109v11.0 - 2021-01-01:
110 Tracing service and probes:
Sami Kyostilaae504d42020-12-02 12:00:25 +0000111 * Added trace packet interceptor API for rerouting trace data into
112 non-Perfetto systems.
Sami Kyostila6c151262020-12-15 18:48:51 +0000113 * Added support for printing track events to the console.
Sami Kyostila2778ac82020-12-21 16:12:27 +0000114 * Added a way to observe track event tracing sessions starting and
115 stopping.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000116 Trace Processor:
Primiano Tucci96755912021-01-05 12:15:17 +0100117 * Added "ancestor_slice" and "experimental_ancestor_stack_profile_callsite"
118 table functions to look up ancestors of CPU stack samples in profiler
119 tables.
120 * Added power metric reporting suspend/resume time periods.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000121 UI:
Primiano Tucci96755912021-01-05 12:15:17 +0100122 * Fixed CPU time calculation in example queries.
123 * Added tracks to debug Android SystemUI jank.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000124
Primiano Tucci5d2be3a2020-12-01 20:42:45 +0100125
126v10.0 - 2020-12-01:
127 Tracing service and probes:
128 * Fixed crash of tracing service if a client is unresponsive on the IPC
129 channel. Clients are disconnected if they don't respond to IPCs for 10s.
130 * Added cmdline arguments for integration within ChromeOS system image
131 (--{producer,consumer}-socket-{group,mode} for chmod-ing sockets).
132 * Changed path lookup logic for traced socket. /run/perfetto/ is used if the
133 directory exists, falling back on /tmp/ otherwise.
134 * Added support for kernel frame symbolization to the traced_perf callstack
135 sampler.
136 * Added support for resolving ftrace event arguments that require
137 symbolization against printk_format.
138 Trace Processor:
139 * Added .read command to inject a SQL query file, similar to the -q cmdline.
140 * Added trace-based metrics to root cause jank in Android System UI.
141 * Added symbolization support for ELF files on Windows for heap and
142 callstack profilers.
143 * Added support for symbolizing names of workqueue ftrace events.
144 * Improved Android startup metric with activity restart time.
145 UI:
146 * Added support for navigating flows with Ctrl+[ / Ctr+].
147 * Improved query result panel, moved to the bottom group allowing
148 simultaneous query result and timeline views.
149 * Fixed data corruption when recording traces via the WebUSB-based Record
150 page in the UI.
151
152
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000153v9.0 - 2020-11-01:
154 Tracing service and probes:
Sami Kyostilaf99230f2020-10-15 10:38:32 +0000155 * Added support for recording traces from a system service through the
156 client API.
157 * The client library now reconnects producers automatically if the
158 connection to the tracing service is lost. Also fixed crashes in ongoing
159 tracing sessions when a disconnect occurs.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000160 * Added support for dpu and g2d ftrace events.
161 * Enabled commit batching and producer side patching of chunks.
162 * Add support for symbolizing kernel symbols for ftrace events.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100163 Trace Processor:
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000164 * Fixed type affinity of string columns.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100165 UI:
Lalit Maganti09549602020-10-01 16:47:00 +0100166 * Added initial support for running metrics from the UI.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000167 * Added support for displaying all flows when a slice or area is selected.
168 * Highlight nodes that match the 'focus' string in the flamegraph.
169 * Added search within slice args.
170 * Fixed details panel height and moved query panel into details panel.
171 * Enabled re-sharing of postMessage traces by echoing back the original URL.
172 * Improved record page error messages.
Lalit Maganti09549602020-10-01 16:47:00 +0100173
174
175v8.0 - 2020-10-01:
176 Tracing service and probes:
177 * Added API for querying registered data sources and their capabilities.
178 * Added support for profiling heap allocations on Linux via LD_PRELOAD.
179 * Fixed possible race when initializing the consumer library.
180 * Fixed subtle bugs on systems with 16KB system pages.
181 Trace Processor:
182 * Added a table which lists available metrics.
183 * Added Python bindings on PyPi in the 'perfetto' package.
184 * Added support for running trace_processor_shell on Android.
185 * Added per-process metrics for GPU memory usage.
186 * Added support for exporting flow events to JSON.
187 * Added dynamic tables for navigating between slices of flows.
188 UI:
189 * Changed time marking: horizontal selection doesn't gray out anymore,
190 pressing 'm' marks the range.
191 * Added initial support for displaying flow event arrows.
192 * Improved ordering of all thread tracks under process grouping.
193 * Fixed UI crashes due to metric errors
194 * Fixed selection of thread state slices.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100195
196
Primiano Tucci816506e2020-09-01 18:13:12 +0200197v7.0 - 2020-09-01:
198 Tracing service and probes:
199 * Added auto-reconnection to the SDK. Tracing::Initialize() now retries in
200 the background, instead of failing, if the tracing service is unrechable.
201 * Added support for recording cpuhp (CPU hotplug) ftrace events.
202 * Fixed heap profiling unwinding on multi-ABI systems.
203 * Fixed reporting of live objects in the native heap profiler when using
204 --dump-at-max.
205 * Fixed crash when writing trace events with field nesting level > 10.
206 Trace Processor:
207 * Added Python bindings, see
208 https://perfetto.dev/docs/analysis/trace-processor#python-api .
209 * Added ingestion for Chrome instant events and Chrome flow events.
210 * Added ingestion for Android GPU memory events and sched_blocked_reason.
211 * Added WebView power metric.
212 * Added support for WSL1 where Async I/O is not available.
213 * Improved detection of Android suspend/resume events.
214 UI:
215 * Added GPU memory recording controls and ingestion code. Requires a recent
216 Android 12+ kernel.
217 * Added details panel for flow events, showed when the user selects a slice
218 involved in a flow (arrows in the UI are still being worked on).
219 * Added instant events rendering.
220 * Added Google Analytics.
221 * Fixed I/O thread-states in 4.14 kernels to deal with the removal of
222 wake-kill using sched_blocked_reason.
223 * Fixed "Perfetto UI started debugging this browser" showing when opening
224 the UI and the Chrome extension is installed.
225 Misc:
226 * Update language to comply with Android's inclusive language guidance.
227
228
Primiano Tucci6d7badc2020-07-31 19:03:27 +0200229v6.0 - 2020-08-01:
230 Tracing service and probes:
231 * Added ftrace thermal events.
232 * Added support for custom allocators to the heap profiler. Allows
233 developers to report memory allocations that are not done through malloc.
234 * Added detailed timestamping of key tracing session events.
235 * Added support for building tracing services on CrOS (system-wide tracing).
236 * Fixed filtering out of stale ftrace data that predates the beginning of
237 the tracing session.
238 Trace Processor:
239 * Improved profile symbolizer. PERFETTO_SYMBOLIZER_MODE=index discovers
240 symbol files by build id rather than name.
241 * Added screen-state Android metrics.
242 UI:
243 * Added 'Info and stats' page to debug data losses and trace stats.
244 * Added full cmdline to process detail panel.
245 * Improved performance of async tracks using quantized queries.
246 * Improved performance of counter and slice tracks for long traces by
247 pre-caching quantized track data.
248 * Improved actionablility of crash dialog when the Wasm module OOMs.
249
250
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100251v5.0 - 2020-07-01:
252 Tracing service and probes:
253 * Added gpu_mem_total ftrace event.
254 * Added TrustZone (scm start/end) event.
255 * Added protos for GPU memory tracking and updated render stages proto.
256 * Added time_in_state probe for Android (CPU time broken down by frequency).
257
258 Trace Processor:
259 * Added ingestion of IRQ and SoftIRQ events.
260 * Added ingestion of workqueue events. KAddr symbolization still missing.
261 * Added ingestion of voltage regulators and board clock change events.
262 * Added ingestion of new ION ion_buffer_create/destroy events.
263 * Added ingestion of TrustZone (scm start/end) events.
264 * Added SurfaceFlinger derived events (tracking of missed frames).
265 * Changed parsing of scheduler task state on 4.14 kernels.
266 * Changed importing of Java heap graphs: allow partial dumps.
267 * Improved performance of the SQL query engine.
268
269 UI:
270 * Added dedicated query page for custom SQL queries.
271 * Added navigation links for Binder slices.
272 * Removed overview summary mode when zoomed out.
273 * Fixed recording page when targeting Android P.
274 * Improved slice pan/zoom performance by quantizing.