blob: 901fd1758ff10fd842dc4f0c2f86ba3930305e14 [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:
5 *
6 UI:
7 *
Sami Kyostilae8c0ff52021-02-16 11:26:16 +00008 SDK:
9 * Use process start time hashed with the process id as a unique process
10 identifier, allowing multiple independent users of the SDK in the same
11 process to interleave their events on shared tracks.
Sami Kyostila86b10c52021-02-16 16:50:42 +000012 * Record process and thread names into the trace.
Primiano Tucci96755912021-01-05 12:15:17 +010013
14
Primiano Tucci71a92392021-02-01 23:45:28 +010015v12.1 - 2021-02-01:
16 Misc:
17 * Fixed CHANGELOG which was missed in the 12.0 branch cut, causing
18 mis-labeling of the version code in the v12.x branch as v11.0..N
19
20
Primiano Tucci9c294a42021-02-01 18:04:23 +010021v12.0 - 2021-02-01:
22 Tracing service and probes:
23 * Added more helpful error messages if the client library is used without
24 having been initialized.
25 * Added //tools/record_android_trace script to facilitate recording traces
26 from Android devices, automating start + stop-via-ctrl+c + pull + open.
27 * Added auto-attachment of traces to Android bugreports if dumpstate is
28 invoked when a trace with bugreport_score > 0 is running.
29 SDK:
30 * Added ability to customize the timestamp of events via
31 ConvertTimestampToTraceTimeNs().
32 * Fixed support for category names that contain a space.
33 Trace Processor:
34 * Added ingestion and query support for Android end-to-end frame timing
35 events through the {actual, expected}_frame_timeline_slice tables.
36 * Added time-to-reportFullyDrawn (Android's API) to startup metrics.
37 * Fixed excessive memory usage when decoding traces containing callstacks
38 (https://github.com/google/perfetto/issues/83).
39 UI:
40 * Added ability to inspect the full trace config string from the
41 'Info and stats' page.
42 * Fixed 'TABLE/VIEW XXX already exists' in the Metrics page when running the
43 same metric twice.
44 * Fixed sorting of tracks using numeric sorting instead of lexicographic:
45 Thread {1, 2, 10, 11, 20} rather than Thread {1, 10, 11, 2, 20}.
46 * Fixed CSP-related bug that was preventing the UI to work on Firefox.
47 * Changed max zoom resolution to allow to zoom to sub-us events.
48
49
Primiano Tucci96755912021-01-05 12:15:17 +010050v11.0 - 2021-01-01:
51 Tracing service and probes:
Sami Kyostilaae504d42020-12-02 12:00:25 +000052 * Added trace packet interceptor API for rerouting trace data into
53 non-Perfetto systems.
Sami Kyostila6c151262020-12-15 18:48:51 +000054 * Added support for printing track events to the console.
Sami Kyostila2778ac82020-12-21 16:12:27 +000055 * Added a way to observe track event tracing sessions starting and
56 stopping.
Isabelle Taylor8546cee2020-10-30 14:43:53 +000057 Trace Processor:
Primiano Tucci96755912021-01-05 12:15:17 +010058 * Added "ancestor_slice" and "experimental_ancestor_stack_profile_callsite"
59 table functions to look up ancestors of CPU stack samples in profiler
60 tables.
61 * Added power metric reporting suspend/resume time periods.
Isabelle Taylor8546cee2020-10-30 14:43:53 +000062 UI:
Primiano Tucci96755912021-01-05 12:15:17 +010063 * Fixed CPU time calculation in example queries.
64 * Added tracks to debug Android SystemUI jank.
Isabelle Taylor8546cee2020-10-30 14:43:53 +000065
Primiano Tucci5d2be3a2020-12-01 20:42:45 +010066
67v10.0 - 2020-12-01:
68 Tracing service and probes:
69 * Fixed crash of tracing service if a client is unresponsive on the IPC
70 channel. Clients are disconnected if they don't respond to IPCs for 10s.
71 * Added cmdline arguments for integration within ChromeOS system image
72 (--{producer,consumer}-socket-{group,mode} for chmod-ing sockets).
73 * Changed path lookup logic for traced socket. /run/perfetto/ is used if the
74 directory exists, falling back on /tmp/ otherwise.
75 * Added support for kernel frame symbolization to the traced_perf callstack
76 sampler.
77 * Added support for resolving ftrace event arguments that require
78 symbolization against printk_format.
79 Trace Processor:
80 * Added .read command to inject a SQL query file, similar to the -q cmdline.
81 * Added trace-based metrics to root cause jank in Android System UI.
82 * Added symbolization support for ELF files on Windows for heap and
83 callstack profilers.
84 * Added support for symbolizing names of workqueue ftrace events.
85 * Improved Android startup metric with activity restart time.
86 UI:
87 * Added support for navigating flows with Ctrl+[ / Ctr+].
88 * Improved query result panel, moved to the bottom group allowing
89 simultaneous query result and timeline views.
90 * Fixed data corruption when recording traces via the WebUSB-based Record
91 page in the UI.
92
93
Isabelle Taylor8546cee2020-10-30 14:43:53 +000094v9.0 - 2020-11-01:
95 Tracing service and probes:
Sami Kyostilaf99230f2020-10-15 10:38:32 +000096 * Added support for recording traces from a system service through the
97 client API.
98 * The client library now reconnects producers automatically if the
99 connection to the tracing service is lost. Also fixed crashes in ongoing
100 tracing sessions when a disconnect occurs.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000101 * Added support for dpu and g2d ftrace events.
102 * Enabled commit batching and producer side patching of chunks.
103 * Add support for symbolizing kernel symbols for ftrace events.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100104 Trace Processor:
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000105 * Fixed type affinity of string columns.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100106 UI:
Lalit Maganti09549602020-10-01 16:47:00 +0100107 * Added initial support for running metrics from the UI.
Isabelle Taylor8546cee2020-10-30 14:43:53 +0000108 * Added support for displaying all flows when a slice or area is selected.
109 * Highlight nodes that match the 'focus' string in the flamegraph.
110 * Added search within slice args.
111 * Fixed details panel height and moved query panel into details panel.
112 * Enabled re-sharing of postMessage traces by echoing back the original URL.
113 * Improved record page error messages.
Lalit Maganti09549602020-10-01 16:47:00 +0100114
115
116v8.0 - 2020-10-01:
117 Tracing service and probes:
118 * Added API for querying registered data sources and their capabilities.
119 * Added support for profiling heap allocations on Linux via LD_PRELOAD.
120 * Fixed possible race when initializing the consumer library.
121 * Fixed subtle bugs on systems with 16KB system pages.
122 Trace Processor:
123 * Added a table which lists available metrics.
124 * Added Python bindings on PyPi in the 'perfetto' package.
125 * Added support for running trace_processor_shell on Android.
126 * Added per-process metrics for GPU memory usage.
127 * Added support for exporting flow events to JSON.
128 * Added dynamic tables for navigating between slices of flows.
129 UI:
130 * Changed time marking: horizontal selection doesn't gray out anymore,
131 pressing 'm' marks the range.
132 * Added initial support for displaying flow event arrows.
133 * Improved ordering of all thread tracks under process grouping.
134 * Fixed UI crashes due to metric errors
135 * Fixed selection of thread state slices.
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100136
137
Primiano Tucci816506e2020-09-01 18:13:12 +0200138v7.0 - 2020-09-01:
139 Tracing service and probes:
140 * Added auto-reconnection to the SDK. Tracing::Initialize() now retries in
141 the background, instead of failing, if the tracing service is unrechable.
142 * Added support for recording cpuhp (CPU hotplug) ftrace events.
143 * Fixed heap profiling unwinding on multi-ABI systems.
144 * Fixed reporting of live objects in the native heap profiler when using
145 --dump-at-max.
146 * Fixed crash when writing trace events with field nesting level > 10.
147 Trace Processor:
148 * Added Python bindings, see
149 https://perfetto.dev/docs/analysis/trace-processor#python-api .
150 * Added ingestion for Chrome instant events and Chrome flow events.
151 * Added ingestion for Android GPU memory events and sched_blocked_reason.
152 * Added WebView power metric.
153 * Added support for WSL1 where Async I/O is not available.
154 * Improved detection of Android suspend/resume events.
155 UI:
156 * Added GPU memory recording controls and ingestion code. Requires a recent
157 Android 12+ kernel.
158 * Added details panel for flow events, showed when the user selects a slice
159 involved in a flow (arrows in the UI are still being worked on).
160 * Added instant events rendering.
161 * Added Google Analytics.
162 * Fixed I/O thread-states in 4.14 kernels to deal with the removal of
163 wake-kill using sched_blocked_reason.
164 * Fixed "Perfetto UI started debugging this browser" showing when opening
165 the UI and the Chrome extension is installed.
166 Misc:
167 * Update language to comply with Android's inclusive language guidance.
168
169
Primiano Tucci6d7badc2020-07-31 19:03:27 +0200170v6.0 - 2020-08-01:
171 Tracing service and probes:
172 * Added ftrace thermal events.
173 * Added support for custom allocators to the heap profiler. Allows
174 developers to report memory allocations that are not done through malloc.
175 * Added detailed timestamping of key tracing session events.
176 * Added support for building tracing services on CrOS (system-wide tracing).
177 * Fixed filtering out of stale ftrace data that predates the beginning of
178 the tracing session.
179 Trace Processor:
180 * Improved profile symbolizer. PERFETTO_SYMBOLIZER_MODE=index discovers
181 symbol files by build id rather than name.
182 * Added screen-state Android metrics.
183 UI:
184 * Added 'Info and stats' page to debug data losses and trace stats.
185 * Added full cmdline to process detail panel.
186 * Improved performance of async tracks using quantized queries.
187 * Improved performance of counter and slice tracks for long traces by
188 pre-caching quantized track data.
189 * Improved actionablility of crash dialog when the Wasm module OOMs.
190
191
Primiano Tucci2ab19f62020-07-01 21:28:31 +0100192v5.0 - 2020-07-01:
193 Tracing service and probes:
194 * Added gpu_mem_total ftrace event.
195 * Added TrustZone (scm start/end) event.
196 * Added protos for GPU memory tracking and updated render stages proto.
197 * Added time_in_state probe for Android (CPU time broken down by frequency).
198
199 Trace Processor:
200 * Added ingestion of IRQ and SoftIRQ events.
201 * Added ingestion of workqueue events. KAddr symbolization still missing.
202 * Added ingestion of voltage regulators and board clock change events.
203 * Added ingestion of new ION ion_buffer_create/destroy events.
204 * Added ingestion of TrustZone (scm start/end) events.
205 * Added SurfaceFlinger derived events (tracking of missed frames).
206 * Changed parsing of scheduler task state on 4.14 kernels.
207 * Changed importing of Java heap graphs: allow partial dumps.
208 * Improved performance of the SQL query engine.
209
210 UI:
211 * Added dedicated query page for custom SQL queries.
212 * Added navigation links for Binder slices.
213 * Removed overview summary mode when zoomed out.
214 * Fixed recording page when targeting Android P.
215 * Improved slice pan/zoom performance by quantizing.