tp: C++ implementation of counter_leading_intervals
Time for `SELECT COUNT() FROM counter_leading_intervals!(counter)` decreased from 2.3s to 180 ms on a 20 MB trace.
Change-Id: Iba5085ce1089a951b213c3d23d9fabd864daf580
diff --git a/Android.bp b/Android.bp
index b689919..d0c7a89 100644
--- a/Android.bp
+++ b/Android.bp
@@ -13249,6 +13249,7 @@
name: "perfetto_src_trace_processor_perfetto_sql_intrinsics_functions_functions",
srcs: [
"src/trace_processor/perfetto_sql/intrinsics/functions/base64.cc",
+ "src/trace_processor/perfetto_sql/intrinsics/functions/counter_intervals.cc",
"src/trace_processor/perfetto_sql/intrinsics/functions/create_function.cc",
"src/trace_processor/perfetto_sql/intrinsics/functions/create_view_function.cc",
"src/trace_processor/perfetto_sql/intrinsics/functions/dominator_tree.cc",