tp: add helper virtual table for computing duration from counter

This CL adds a virtual table to compute the duration from the counters
table directly without using window functions.

Using window functions makes this operation very expensive which is not
good for such an important table which we need to span join with other
tables.

A follow up CL will start using this table in the UI and metrics.

Change-Id: Ie8c111c953da5ad8190fc2b4cbe70be9cc32ae9a
diff --git a/Android.bp b/Android.bp
index f857104..8691011 100644
--- a/Android.bp
+++ b/Android.bp
@@ -6055,6 +6055,7 @@
   srcs: [
     "src/trace_processor/read_trace.cc",
     "src/trace_processor/sql_stats_table.cc",
+    "src/trace_processor/sqlite_experimental_counter_dur_table.cc",
     "src/trace_processor/sqlite_experimental_flamegraph_table.cc",
     "src/trace_processor/sqlite_raw_table.cc",
     "src/trace_processor/stats_table.cc",
@@ -6226,6 +6227,7 @@
     "src/trace_processor/process_tracker_unittest.cc",
     "src/trace_processor/protozero_to_text_unittests.cc",
     "src/trace_processor/slice_tracker_unittest.cc",
+    "src/trace_processor/sqlite_experimental_counter_dur_table_unittest.cc",
     "src/trace_processor/syscall_tracker_unittest.cc",
     "src/trace_processor/trace_sorter_unittest.cc",
   ],