tp: migrate the dfs macro to use value tables + aggregates instead
Change-Id: I16b30e4f4edb5a1978345cd68d6c1b909832626a
diff --git a/Android.bp b/Android.bp
index 655368d..3832040 100644
--- a/Android.bp
+++ b/Android.bp
@@ -2581,6 +2581,7 @@
"perfetto_src_trace_processor_metrics_gen_cc_all_webview_metrics_descriptor",
"perfetto_src_trace_processor_metrics_gen_cc_metrics_descriptor",
"perfetto_src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
+ "perfetto_src_trace_processor_perfetto_sql_intrinsics_functions_tables",
"perfetto_src_trace_processor_perfetto_sql_intrinsics_table_functions_tables",
"perfetto_src_trace_processor_perfetto_sql_prelude_prelude",
"perfetto_src_trace_processor_perfetto_sql_stdlib_stdlib",
@@ -12181,6 +12182,7 @@
"src/trace_processor/perfetto_sql/intrinsics/functions/base64.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/dfs.cc",
"src/trace_processor/perfetto_sql/intrinsics/functions/import.cc",
"src/trace_processor/perfetto_sql/intrinsics/functions/layout_functions.cc",
"src/trace_processor/perfetto_sql/intrinsics/functions/math.cc",
@@ -12199,6 +12201,34 @@
],
}
+// GN: //src/trace_processor/perfetto_sql/intrinsics/functions:tables
+genrule {
+ name: "perfetto_src_trace_processor_perfetto_sql_intrinsics_functions_tables",
+ srcs: [
+ "src/trace_processor/perfetto_sql/intrinsics/functions/tables.py",
+ ],
+ tools: [
+ "perfetto_src_trace_processor_perfetto_sql_intrinsics_functions_tables_binary",
+ ],
+ cmd: "$(location perfetto_src_trace_processor_perfetto_sql_intrinsics_functions_tables_binary) --gen-dir=$(genDir) --relative-input-dir=external/perfetto --inputs $(in)",
+ out: [
+ "src/trace_processor/perfetto_sql/intrinsics/functions/tables_py.h",
+ ],
+}
+
+// GN: //src/trace_processor/perfetto_sql/intrinsics/functions:tables
+python_binary_host {
+ name: "perfetto_src_trace_processor_perfetto_sql_intrinsics_functions_tables_binary",
+ srcs: [
+ "python/generators/trace_processor_table/public.py",
+ "python/generators/trace_processor_table/serialize.py",
+ "python/generators/trace_processor_table/util.py",
+ "src/trace_processor/perfetto_sql/intrinsics/functions/tables.py",
+ "tools/gen_tp_table_headers.py",
+ ],
+ main: "tools/gen_tp_table_headers.py",
+}
+
// GN: //src/trace_processor/perfetto_sql/intrinsics/functions:unittests
filegroup {
name: "perfetto_src_trace_processor_perfetto_sql_intrinsics_functions_unittests",
@@ -12239,7 +12269,6 @@
"src/trace_processor/perfetto_sql/intrinsics/table_functions/ancestor.cc",
"src/trace_processor/perfetto_sql/intrinsics/table_functions/connected_flow.cc",
"src/trace_processor/perfetto_sql/intrinsics/table_functions/descendant.cc",
- "src/trace_processor/perfetto_sql/intrinsics/table_functions/dfs.cc",
"src/trace_processor/perfetto_sql/intrinsics/table_functions/dfs_weight_bounded.cc",
"src/trace_processor/perfetto_sql/intrinsics/table_functions/dominator_tree.cc",
"src/trace_processor/perfetto_sql/intrinsics/table_functions/experimental_annotated_stack.cc",
@@ -14567,6 +14596,7 @@
"perfetto_src_trace_processor_metrics_gen_cc_all_webview_metrics_descriptor",
"perfetto_src_trace_processor_metrics_gen_cc_metrics_descriptor",
"perfetto_src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
+ "perfetto_src_trace_processor_perfetto_sql_intrinsics_functions_tables",
"perfetto_src_trace_processor_perfetto_sql_intrinsics_table_functions_tables",
"perfetto_src_trace_processor_perfetto_sql_prelude_prelude",
"perfetto_src_trace_processor_perfetto_sql_stdlib_stdlib",
@@ -15110,6 +15140,7 @@
"perfetto_src_trace_processor_metrics_gen_cc_all_webview_metrics_descriptor",
"perfetto_src_trace_processor_metrics_gen_cc_metrics_descriptor",
"perfetto_src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
+ "perfetto_src_trace_processor_perfetto_sql_intrinsics_functions_tables",
"perfetto_src_trace_processor_perfetto_sql_intrinsics_table_functions_tables",
"perfetto_src_trace_processor_perfetto_sql_prelude_prelude",
"perfetto_src_trace_processor_perfetto_sql_stdlib_stdlib",
@@ -15484,6 +15515,7 @@
"perfetto_src_trace_processor_metrics_gen_cc_all_webview_metrics_descriptor",
"perfetto_src_trace_processor_metrics_gen_cc_metrics_descriptor",
"perfetto_src_trace_processor_metrics_sql_gen_amalgamated_sql_metrics",
+ "perfetto_src_trace_processor_perfetto_sql_intrinsics_functions_tables",
"perfetto_src_trace_processor_perfetto_sql_intrinsics_table_functions_tables",
"perfetto_src_trace_processor_perfetto_sql_prelude_prelude",
"perfetto_src_trace_processor_perfetto_sql_stdlib_stdlib",