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