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