Enable -msse4.2, -mavx, -mpopcnt on x86_64 builds
This allows the compiler to optimize various memory-access
operations, like the ones in TraceProcessor's bit_vector.h.
Also add a run-time check that crashes the process in a
graceful manner to check that the host CPU actually has the
features we are assuming.
Bug: 205302474
Change-Id: I65bc93487aea5202c947686de577a74d3261f14e
diff --git a/CHANGELOG b/CHANGELOG
index 40567f0..8718f0c 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,8 +1,11 @@
Unreleased:
Tracing service and probes:
* Added Android SDK version to the SystemInfo trace packet.
+ * Changed compiler flags. Assume recent x64 CPUs (-msse4.2 -mavx -mpopcnt).
+ This behavior affects only standalone builds and can be changed by setting
+ enable_perfetto_x64_cpu_opt=false in the GN args.
Trace Processor:
- *
+ * Changed compiler flags, assume recent x64 CPUs (see above).
UI:
*
SDK: