blob: d1bba4cad0655c4e386f02306570285a4be23832 [file] [log] [blame]
Primiano Tucci2ab19f62020-07-01 21:28:31 +01001Unreleased:
2 Tracing service and probes:
Primiano Tucci235610f2021-05-24 20:22:43 +01003 * Added support for building most targets (including traced, SDK and
4 trace_processor_shell) from Windows using either clang-cl or MSVC 2019.
5 * Added tracebox, a monolithic binary to capture traces with one command
6 on Linux and older versions of Android (tested on Android Oreo).
Primiano Tucci96755912021-01-05 12:15:17 +01007 Trace Processor:
Primiano Tucci8220de22021-05-05 09:53:37 +01008 *
Primiano Tuccie60b7c82021-03-03 14:09:35 +00009 UI:
10 *
Alexander Timin37c8afd2021-04-06 18:42:18 +000011 SDK:
Primiano Tucci8220de22021-05-05 09:53:37 +010012 *
13
14
15v15.0 - 2021-05-05:
16 Tracing service and probes:
17 * Added support for {host,target}=aarch64 standalone builds.
18 * Added --background cmdline switch to traced and traced_probes services.
19 * Changed trigger_perfetto to ignore unknown command line arguments to
20 preserve forward compatibility.
21 * Added -a / --app cmdline argument to tools/record_android_trace.
22 Trace Processor:
23 * Added sanitisation of keys in nested debug annotation dictionaries.
24 * Changed Android startup metric: count CPU time of JIT thread pool, report
25 timestamp of activities during startup.
26 * Changed android_surfaceflinger metric, added missed frame counters.
27 * Changed version of SQLite to 3.35.4.
28 * Fixed importing of JSON traces with decimal (sub-us) timestamp.
29 * Fixed prepending "debug." prefix to debug annotations with non-interned
30 names.
31 UI:
32 * Added support to visualize the lifetime of individual dmabuf allocations
33 as async slices (datasource: already existing ftrace dmabuf event).
34 * Fixed visualization of unfinished slices to extend to the end of the
35 viewport.
36 SDK:
Alexander Timin129bdcf2021-04-16 11:36:37 +000037 * Added support for passing arbitrary number of debug annotations to
38 TRACE_EVENT and combining them with lambdas.
39 * Added support for writing typed TrackEvent arguments using TRACE_EVENT
40 inline without lambdas.
Primiano Tucci8220de22021-05-05 09:53:37 +010041 * Changed ConvertTimestampToTraceTimeNs to be a member of
42 TraceTimestampTraits<T> struct instead of a standalone function.
43 * Changed TracedValue to use nested DebugAnnotation proto instead of
44 DebugAnnotation::NestedValue.
Primiano Tucci7454e1a2021-04-01 13:03:19 +010045
46
47v14.0 - 2021-04-01:
48 Tracing service and probes:
49 * Added support for polling power rails on Android from the newer
50 IPowerStats AIDL interface (previously using only the HAL interface).
51 * Fixed native heap profiler crash when ABI of heapprofd and profiled
52 process mismatch.
53 * Changed encoding format of Anroid managed heap profiler to reduce heap
54 dump sizes by delta-encoding object IDs.
55 Trace Processor:
56 * Added activity create/resume, layout inflation and resource timings to
57 the Android startup metric.
58 * Added chrome metadata key/value pairs (e.g. chrome version) into the
59 `metadata` table with 'cr-' prefixed keys.
60 * Added dma-buf-based memory metrics reporting total/avg/min/max dmabuf
61 allocation per-dmabuf-heap and per-process.
62 * Removed |force_full_sort| flag from config. This has been replaced
63 by setting the sorting mode to force a full sort.
64 UI:
65 * Added tools/symbolize-ui-crash script to resolve crash reports via
66 TypeScript source maps.
67 * Fixed newlines when copying Android event log lines into the clipboard.
68 * Fixed crash when selecting "Did not finish" slices.
69 * Fixed OOM dialog to give actionable instructions when opening large traces
70 rather than suggesting to file a bug.
Sami Kyostilaedf7c862021-03-11 13:33:35 +000071 SDK:
Primiano Tucci7454e1a2021-04-01 13:03:19 +010072 * Added /meson.build for bundling /sdk/perfetto.{cc,h} in Meson builds.
73 * Added support for counter trace points with the TRACE_COUNTER macro.
74
Primiano Tuccie60b7c82021-03-03 14:09:35 +000075
76v13.0 - 2021-03-01:
77 Tracing service and probes:
78 * Added ability to sample callstacks using kernel tracepoints as timebase.
79 * Added abililty to record the perf timebase counter values into the trace,
80 both combined callstack+counter or counter-only.
81 * Added abillity to trigger traces based on VM pressure on Android. Requires
82 a dedicated tracing instance in $tracefs/instances/mm_events.
83 Trace Processor:
Lalit Maganti88eb6982021-03-01 14:28:51 +000084 * Added sorting mode to trace processor config to specify how trace
85 processor should sort events. The |force_full_sort| flag has been
86 deprecated (with replacement) and will be removed in the next version.
Primiano Tuccie60b7c82021-03-03 14:09:35 +000087 * Added ingestion of frame timeline events into the
88 {expected,actual}_frame_timeline_slice tables.
89 * Added support for Mali's trace_marker_write ftrace event.
90 * Added memory metric based on newer android_fastrpc kernel events.
Primiano Tucci96755912021-01-05 12:15:17 +010091 UI:
Primiano Tuccie60b7c82021-03-03 14:09:35 +000092 * Added flow events support for instant events and async tracks.
93 * Added support for Android frame timeline events. They allow inspecting
94 end-to-end expected vs actual app-to-surfaceflinger frame times.
95 * Added ability to switch between Canary and Stable channels in the UI.
96 * Added ability to drag&drop to open trace files.
97 * Changed UI serving infrastructure, old ui versions can be now retrieved by
98 directly opening https://ui.perfetto.dev/v12.1.269/ .
99 * Removed thread state track for threads that have no activity.
Sami Kyostilae8c0ff52021-02-16 11:26:16 +0000100 SDK:
101 * Use process start time hashed with the process id as a unique process
102 identifier, allowing multiple independent users of the SDK in the same
103 process to interleave their events on shared tracks.
Sami Kyostila86b10c52021-02-16 16:50:42 +0000104 * Record process and thread names into the trace.
Sami Kyostila67cdc662021-02-26 16:42:14 +0000105 * Add ring buffer tracing support, i.e., periodic clearing of incremental
106 state.
Primiano Tuccie60b7c82021-03-03 14:09:35 +0000107 Misc:
108 * Convert python scripts to python3.
Primiano Tucci96755912021-01-05 12:15:17 +0100109
110
Primiano Tucci71a92392021-02-01 23:45:28 +0100111v12.1 - 2021-02-01:
112 Misc:
113 * Fixed CHANGELOG which was missed in the 12.0 branch cut, causing
114 mis-labeling of the version code in the v12.x branch as v11.0..N
115
116
Primiano Tucci9c294a42021-02-01 18:04:23 +0100117v12.0 - 2021-02-01:
118 Tracing service and probes:
119 * Added more helpful error messages if the client library is used without
120 having been initialized.
121 * Added //tools/record_android_trace script to facilitate recording traces
122 from Android devices, automating start + stop-via-ctrl+c + pull + open.
123 * Added auto-attachment of traces to Android bugreports if dumpstate is
124 invoked when a trace with bugreport_score > 0 is running.
125 SDK:
126 * Added ability to customize the timestamp of events via
127 ConvertTimestampToTraceTimeNs().
128 * Fixed support for category names that contain a space.
129 Trace Processor:
130 * Added ingestion and query support for Android end-to-end frame timing
131 events through the {actual, expected}_frame_timeline_slice tables.
132 * Added time-to-reportFullyDrawn (Android's API) to startup metrics.
133 * Fixed excessive memory usage when decoding traces containing callstacks
134 (https://github.com/google/perfetto/issues/83).
135 UI:
136 * Added ability to inspect the full trace config string from the
137 'Info and stats' page.
138 * Fixed 'TABLE/VIEW XXX already exists' in the Metrics page when running the
139 same metric twice.
140 * Fixed sorting of tracks using numeric sorting instead of lexicographic:
141 Thread {1, 2, 10, 11, 20} rather than Thread {1, 10, 11, 2, 20}.
142 * Fixed CSP-related bug that was preventing the UI to work on Firefox.
143 * Changed max zoom resolution to allow to zoom to sub-us events.
144
145
Primiano Tucci96755912021-01-05 12:15:17 +0100146v11.0 - 2021-01-01:
147 Tracing service and probes:
Sami Kyostilaae504d42020-12-02 12:00:25 +0000148 * Added trace packet interceptor API for rerouting trace data into
149 non-Perfetto systems.
Sami Kyostila6c151262020-12-15 18:48:51 +0000150 * Added support for printing track events to the console.
Sami Kyostila2778ac82020-12-21 16:12:27 +0000151 * Added a way to observe track event tracing sessions starting and
152 stopping.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000153 Trace Processor:
Primiano Tucci96755912021-01-05 12:15:17 +0100154 * Added "ancestor_slice" and "experimental_ancestor_stack_profile_callsite"
155 table functions to look up ancestors of CPU stack samples in profiler
156 tables.
157 * Added power metric reporting suspend/resume time periods.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000158 UI:
Primiano Tucci96755912021-01-05 12:15:17 +0100159 * Fixed CPU time calculation in example queries.
160 * Added tracks to debug Android SystemUI jank.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000161
Primiano Tucci5d2be3a2020-12-01 20:42:45 +0100162
163v10.0 - 2020-12-01:
164 Tracing service and probes:
165 * Fixed crash of tracing service if a client is unresponsive on the IPC
166 channel. Clients are disconnected if they don't respond to IPCs for 10s.
167 * Added cmdline arguments for integration within ChromeOS system image
168 (--{producer,consumer}-socket-{group,mode} for chmod-ing sockets).
169 * Changed path lookup logic for traced socket. /run/perfetto/ is used if the
170 directory exists, falling back on /tmp/ otherwise.
171 * Added support for kernel frame symbolization to the traced_perf callstack
172 sampler.
173 * Added support for resolving ftrace event arguments that require
174 symbolization against printk_format.
175 Trace Processor:
176 * Added .read command to inject a SQL query file, similar to the -q cmdline.
177 * Added trace-based metrics to root cause jank in Android System UI.
178 * Added symbolization support for ELF files on Windows for heap and
179 callstack profilers.
180 * Added support for symbolizing names of workqueue ftrace events.
181 * Improved Android startup metric with activity restart time.
182 UI:
183 * Added support for navigating flows with Ctrl+[ / Ctr+].
184 * Improved query result panel, moved to the bottom group allowing
185 simultaneous query result and timeline views.
186 * Fixed data corruption when recording traces via the WebUSB-based Record
187 page in the UI.
188
189
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000190v9.0 - 2020-11-01:
191 Tracing service and probes:
Sami Kyostilaf99230f2020-10-15 10:38:32 +0000192 * Added support for recording traces from a system service through the
193 client API.
194 * The client library now reconnects producers automatically if the
195 connection to the tracing service is lost. Also fixed crashes in ongoing
196 tracing sessions when a disconnect occurs.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000197 * Added support for dpu and g2d ftrace events.
198 * Enabled commit batching and producer side patching of chunks.
199 * Add support for symbolizing kernel symbols for ftrace events.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100200 Trace Processor:
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000201 * Fixed type affinity of string columns.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100202 UI:
Lalit Maganti09549602020-10-01 16:47:00 +0100203 * Added initial support for running metrics from the UI.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000204 * Added support for displaying all flows when a slice or area is selected.
205 * Highlight nodes that match the 'focus' string in the flamegraph.
206 * Added search within slice args.
207 * Fixed details panel height and moved query panel into details panel.
208 * Enabled re-sharing of postMessage traces by echoing back the original URL.
209 * Improved record page error messages.
Lalit Maganti09549602020-10-01 16:47:00 +0100210
211
212v8.0 - 2020-10-01:
213 Tracing service and probes:
214 * Added API for querying registered data sources and their capabilities.
215 * Added support for profiling heap allocations on Linux via LD_PRELOAD.
216 * Fixed possible race when initializing the consumer library.
217 * Fixed subtle bugs on systems with 16KB system pages.
218 Trace Processor:
219 * Added a table which lists available metrics.
220 * Added Python bindings on PyPi in the 'perfetto' package.
221 * Added support for running trace_processor_shell on Android.
222 * Added per-process metrics for GPU memory usage.
223 * Added support for exporting flow events to JSON.
224 * Added dynamic tables for navigating between slices of flows.
225 UI:
226 * Changed time marking: horizontal selection doesn't gray out anymore,
227 pressing 'm' marks the range.
228 * Added initial support for displaying flow event arrows.
229 * Improved ordering of all thread tracks under process grouping.
230 * Fixed UI crashes due to metric errors
231 * Fixed selection of thread state slices.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100232
233
Primiano Tucci816506e2020-09-01 18:13:12 +0200234v7.0 - 2020-09-01:
235 Tracing service and probes:
236 * Added auto-reconnection to the SDK. Tracing::Initialize() now retries in
237 the background, instead of failing, if the tracing service is unrechable.
238 * Added support for recording cpuhp (CPU hotplug) ftrace events.
239 * Fixed heap profiling unwinding on multi-ABI systems.
240 * Fixed reporting of live objects in the native heap profiler when using
241 --dump-at-max.
242 * Fixed crash when writing trace events with field nesting level > 10.
243 Trace Processor:
244 * Added Python bindings, see
245 https://perfetto.dev/docs/analysis/trace-processor#python-api .
246 * Added ingestion for Chrome instant events and Chrome flow events.
247 * Added ingestion for Android GPU memory events and sched_blocked_reason.
248 * Added WebView power metric.
249 * Added support for WSL1 where Async I/O is not available.
250 * Improved detection of Android suspend/resume events.
251 UI:
252 * Added GPU memory recording controls and ingestion code. Requires a recent
253 Android 12+ kernel.
254 * Added details panel for flow events, showed when the user selects a slice
255 involved in a flow (arrows in the UI are still being worked on).
256 * Added instant events rendering.
257 * Added Google Analytics.
258 * Fixed I/O thread-states in 4.14 kernels to deal with the removal of
259 wake-kill using sched_blocked_reason.
260 * Fixed "Perfetto UI started debugging this browser" showing when opening
261 the UI and the Chrome extension is installed.
262 Misc:
263 * Update language to comply with Android's inclusive language guidance.
264
265
Primiano Tucci6d7badc2020-07-31 19:03:27 +0200266v6.0 - 2020-08-01:
267 Tracing service and probes:
268 * Added ftrace thermal events.
269 * Added support for custom allocators to the heap profiler. Allows
270 developers to report memory allocations that are not done through malloc.
271 * Added detailed timestamping of key tracing session events.
272 * Added support for building tracing services on CrOS (system-wide tracing).
273 * Fixed filtering out of stale ftrace data that predates the beginning of
274 the tracing session.
275 Trace Processor:
276 * Improved profile symbolizer. PERFETTO_SYMBOLIZER_MODE=index discovers
277 symbol files by build id rather than name.
278 * Added screen-state Android metrics.
279 UI:
280 * Added 'Info and stats' page to debug data losses and trace stats.
281 * Added full cmdline to process detail panel.
282 * Improved performance of async tracks using quantized queries.
283 * Improved performance of counter and slice tracks for long traces by
284 pre-caching quantized track data.
285 * Improved actionablility of crash dialog when the Wasm module OOMs.
286
287
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100288v5.0 - 2020-07-01:
289 Tracing service and probes:
290 * Added gpu_mem_total ftrace event.
291 * Added TrustZone (scm start/end) event.
292 * Added protos for GPU memory tracking and updated render stages proto.
293 * Added time_in_state probe for Android (CPU time broken down by frequency).
294
295 Trace Processor:
296 * Added ingestion of IRQ and SoftIRQ events.
297 * Added ingestion of workqueue events. KAddr symbolization still missing.
298 * Added ingestion of voltage regulators and board clock change events.
299 * Added ingestion of new ION ion_buffer_create/destroy events.
300 * Added ingestion of TrustZone (scm start/end) events.
301 * Added SurfaceFlinger derived events (tracking of missed frames).
302 * Changed parsing of scheduler task state on 4.14 kernels.
303 * Changed importing of Java heap graphs: allow partial dumps.
304 * Improved performance of the SQL query engine.
305
306 UI:
307 * Added dedicated query page for custom SQL queries.
308 * Added navigation links for Binder slices.
309 * Removed overview summary mode when zoomed out.
310 * Fixed recording page when targeting Android P.
311 * Improved slice pan/zoom performance by quantizing.