Implement metric for input processing delay using LongTask scenario.
This patch includes: creating a new long task tracking table similar
to chrome_tasks, and making the metric calculation scripts generic
enough to handle chrome_tasks and chrome_long_tasks, including
input to browser interval calculations. See crev.com/4071005 for
additional context.
LongTaskTracker events are logged as non-embedded slices with the
scheduler.long_tasks, and will include all relevant task-name
information (where the posted task is called from, and IPC). They
will additionally include nested Java events for BeginMainFrame,
as these events will not be included with any toplevel root slices.
Bug: 1375779
Change-Id: Id340298c2cbb7480e6188cf923c21c844141eebd
diff --git a/Android.bp b/Android.bp
index b0ab72c..5ed6309 100644
--- a/Android.bp
+++ b/Android.bp
@@ -9752,6 +9752,8 @@
"src/trace_processor/metrics/sql/chrome/chrome_histogram_hashes.sql",
"src/trace_processor/metrics/sql/chrome/chrome_input_to_browser_intervals.sql",
"src/trace_processor/metrics/sql/chrome/chrome_input_to_browser_intervals_template.sql",
+ "src/trace_processor/metrics/sql/chrome/chrome_long_tasks.sql",
+ "src/trace_processor/metrics/sql/chrome/chrome_long_tasks_delaying_input_processing.sql",
"src/trace_processor/metrics/sql/chrome/chrome_performance_mark_hashes.sql",
"src/trace_processor/metrics/sql/chrome/chrome_processes.sql",
"src/trace_processor/metrics/sql/chrome/chrome_reliable_range.sql",
@@ -9761,6 +9763,7 @@
"src/trace_processor/metrics/sql/chrome/chrome_stack_samples_for_task.sql",
"src/trace_processor/metrics/sql/chrome/chrome_tasks.sql",
"src/trace_processor/metrics/sql/chrome/chrome_tasks_delaying_input_processing.sql",
+ "src/trace_processor/metrics/sql/chrome/chrome_tasks_delaying_input_processing_base.sql",
"src/trace_processor/metrics/sql/chrome/chrome_tasks_delaying_input_processing_template.sql",
"src/trace_processor/metrics/sql/chrome/chrome_tasks_template.sql",
"src/trace_processor/metrics/sql/chrome/chrome_thread_slice.sql",