Add heap profile metric output
Bug: b/133745684
Change-Id: I9689b4b493efc3fe7dc7237bfc2295d863c0d512
diff --git a/Android.bp b/Android.bp
index 3941dca..a07358c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -23,6 +23,7 @@
"src/trace_processor/metrics/android/android_startup.sql",
"src/trace_processor/metrics/android/android_startup_launches.sql",
"src/trace_processor/metrics/android/android_task_state.sql",
+ "src/trace_processor/metrics/android/heap_profile.sql",
"src/trace_processor/metrics/error_statistics.sql",
],
cmd: "$(location tools/gen_merged_sql_metrics.py) --cpp_out=$(out) $(in)",
@@ -1062,6 +1063,7 @@
genrule {
name: "perfetto_protos_perfetto_metrics_android_zero_gen",
srcs: [
+ "protos/perfetto/metrics/android/heap_profile.proto",
"protos/perfetto/metrics/android/mem_metric.proto",
"protos/perfetto/metrics/android/startup_metric.proto",
],
@@ -1071,6 +1073,7 @@
],
cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
out: [
+ "external/perfetto/protos/perfetto/metrics/android/heap_profile.pbzero.cc",
"external/perfetto/protos/perfetto/metrics/android/mem_metric.pbzero.cc",
"external/perfetto/protos/perfetto/metrics/android/startup_metric.pbzero.cc",
],
@@ -1080,6 +1083,7 @@
genrule {
name: "perfetto_protos_perfetto_metrics_android_zero_gen_headers",
srcs: [
+ "protos/perfetto/metrics/android/heap_profile.proto",
"protos/perfetto/metrics/android/mem_metric.proto",
"protos/perfetto/metrics/android/startup_metric.proto",
],
@@ -1089,6 +1093,7 @@
],
cmd: "mkdir -p $(genDir)/external/perfetto/protos && $(location aprotoc) --cpp_out=$(genDir)/external/perfetto/protos --proto_path=external/perfetto/protos --plugin=protoc-gen-plugin=$(location perfetto_src_protozero_protoc_plugin_protoc_plugin___gn_standalone_toolchain_gcc_like_host_) --plugin_out=wrapper_namespace=pbzero:$(genDir)/external/perfetto/protos $(in)",
out: [
+ "external/perfetto/protos/perfetto/metrics/android/heap_profile.pbzero.h",
"external/perfetto/protos/perfetto/metrics/android/mem_metric.pbzero.h",
"external/perfetto/protos/perfetto/metrics/android/startup_metric.pbzero.h",
],